home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / configure < prev    next >
Encoding:
Text File  |  1995-08-31  |  174.7 KB  |  6,285 lines

  1. #!/bin/sh
  2. #### Configuration script for XEmacs.
  3. #### Copyright (C) 1994 Free Software Foundation, Inc.
  4.  
  5. ### Don't edit this script!
  6. ### This script was automatically generated by the `autoconf' program
  7. ### from the file `./configure.in'.
  8. ### To rebuild it, execute the command
  9. ###    autoconf
  10. ### in the this directory.  You must have autoconf version 1.9 or later.
  11.  
  12. ### This file is part of XEmacs.
  13.  
  14. ### XEmacs is free software; you can redistribute it and/or modify it
  15. ### under the terms of the GNU General Public License as published by
  16. ### the Free Software Foundation; either version 2, or (at your
  17. ### option) any later version.
  18.  
  19. ### XEmacs is distributed in the hope that it will be useful, but
  20. ### WITHOUT ANY WARRANTY; without even the implied warranty of
  21. ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  22. ### General Public License for more details.
  23.  
  24. ### You should have received a copy of the GNU General Public License
  25. ### along with XEmacs; see the file COPYING.  If not, write to the
  26. ### Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  27.  
  28. ### Since XEmacs has configuration requirements that autoconf can't
  29. ### meet, this file is an unholy marriage of custom-baked
  30. ### configuration code and autoconf macros.
  31. ###
  32. ### We use the m4 quoting characters [ ] (as established by the
  33. ### autoconf system) to include large sections of raw sewage - Oops, I
  34. ### mean, shell code - in the final configuration script.
  35. ###
  36. ### Usage: configure config_name
  37. ###
  38. ### If configure succeeds, it leaves its status in config.status.
  39. ### If configure fails after disturbing the status quo,
  40. ###     config.status is removed.
  41.  
  42. ### Remove any more than one leading "." element from the path name.
  43. ### If we don't remove them, then another "./" will be prepended to
  44. ### the file name each time we use config.status, and the program name
  45. ### will get larger and larger.  This wouldn't be a problem, except
  46. ### that since progname gets recorded in all the Makefiles this script
  47. ### produces, move-if-change thinks they're different when they're
  48. ### not.
  49. ###
  50. ### It would be nice if we could put the ./ in a \( \) group and then
  51. ### apply the * operator to that, so we remove as many leading ./././'s
  52. ### as are present, but some seds (like Ultrix's sed) don't allow you to
  53. ### apply * to a \( \) group.  Bleah.
  54. progname="`echo $0 | sed 's:^\./\./:\./:'`"
  55.  
  56.  
  57. ### Establish some default values.
  58. run_in_place='no'
  59. prefix='/usr/local'
  60. exec_prefix='${prefix}'
  61. bindir='${exec_prefix}/bin'
  62. datadir='${prefix}/lib'
  63. statedir='${prefix}/lib'
  64. libdir='${exec_prefix}/lib'
  65. mandir='${prefix}/man/man1'
  66. infodir='${prefix}/lib/xemacs-${version}/info'
  67. lispdir='${datadir}/xemacs-${version}/lisp'
  68. sitelispdir='${datadir}/xemacs/site-lisp'
  69. etcdir='${datadir}/xemacs-${version}/etc'
  70. lockdir='${statedir}/xemacs/lock'
  71. archlibdir='${libdir}/xemacs-${version}/${configuration}'
  72. with_menubars=''
  73. with_scrollbars=''
  74. with_dialogs=''
  75. const_is_losing='yes'
  76. dont_have_xmu=''
  77. puresize=''
  78. cflags='NO_CFLAGS_DEFINED'
  79. dynamic=''
  80. with_x11=''
  81. rel_alloc='default'
  82. internal_makefile_list='Makefile lib-src/Makefile.in man/Makefile src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in'
  83. energize_version='no'
  84. native_sound_lib=''
  85. # make normal error-checking be the default in alpha and beta versions, so
  86. # that bugs get noticed.  Change this for released versions.
  87. error_check_default='none'
  88. error_check_extents=$error_check_default
  89. error_check_typecheck=$error_check_default
  90. error_check_bufpos=$error_check_default
  91. error_check_gc=$error_check_default
  92. error_check_malloc=$error_check_default
  93. # debug=yes must be set when error checking is present.  This should be
  94. # fixed up.
  95. debug=$error_check_default
  96. quantify='no'
  97. # use-assertions should be 'yes' by default.  Too many people in this
  98. # world have core dumps turned off by default or "can't find where the
  99. # core file went".  At least we should get some useful output ...
  100. use_assertions='yes'
  101.  
  102. # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
  103. # # other versions of echo eat any strings beginning with `-n'.
  104. # # when parsing arguments, special case these strings and don't
  105. # # pass them through echo
  106. # echo=/bin/echo
  107. #
  108. # this approach abandoned in favor of
  109. #
  110. #   echo "" ${stuff_to_filter} | sed -e 's:^ ::'
  111.  
  112. # On Sun systems, people sometimes set up the variable CPP
  113. # with a value that is a directory, not an executable at all.
  114. # Detect that case, and ignore that value.
  115. if [ "x$CPP" != x ] && [ -d "$CPP" ] ; then
  116.   CPP=
  117. fi
  118.  
  119. #### Usage messages.
  120.  
  121. short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
  122.  
  123. Set compilation and installation parameters for XEmacs, and report.
  124. CONFIGURATION specifies the machine and operating system to build for.
  125.  
  126. Note that for most of the following options, you can explicitly disable
  127. them using \`--OPTION=no'.  This is especially useful for auto-detected
  128. options.
  129.   
  130. General options:
  131.  
  132. --help            Issue this usage message.
  133. --verbose        Display the results of configure tests.
  134.  
  135. Compiler options:
  136.  
  137. --compiler        Specify compiler.
  138. --with-gcc        Use GCC to compile XEmacs (auto-detected).
  139. --with-lcc        Use LCC to compile XEmacs.
  140. --with-gcc=no        Don't use GCC to compile XEmacs.
  141. --cflags=FLAGS        Override the default values for CFLAGS.
  142. --site-includes=DIR    Other header file directories.
  143. --site-libraries=DIR    Other library directories.
  144. --site-runtime-libraries=DIR
  145.             Paths to add with -R flag.
  146. --dynamic        Link dynamically if supported by system.
  147. --srcdir=DIR        Look for the XEmacs source files in DIR.
  148. --const-is-losing=no    Allow the use of const in the source code.
  149.  
  150. Installation options:
  151.   
  152. --prefix=DIR        Install files below DIR.  Defaults to \`${prefix}'.
  153. --run-in-place          Use the source tree for installation.
  154.  
  155. Window-system options:
  156.  
  157. --with-x        Support the X Window System (auto-detected).
  158. --with-x=no        Don't support X.
  159. --x-includes=DIR     Search for X header files in DIR.
  160. --x-libraries=DIR    Search for X libraries in DIR.
  161. --with-ns        Support NeXTstep windows (not yet implemented).
  162. --with-menubars=TYPE    Use TYPE menubars (lucid or motif).
  163.             *WARNING*  The Motif menubar is currently broken.
  164. --with-scrollbars=TYPE    Use TYPE scrollbars (lucid, motif, or athena).
  165. --with-dialogs=TYPE    Use TYPE dialog boxes (motif or athena).
  166.             (Lucid menubars and scrollbars are the default.
  167.              Motif dialog boxes will be used if Motif can be
  168.              found.)
  169. --with-xpm        Compile with support for XPM files (auto-detected).
  170. --dont-have-xmu        For those unfortunates whose vendors don't ship Xmu.
  171.  
  172. Additional features:
  173.   
  174. --with-tooltalk        Support the ToolTalk system.
  175. --with-sparcworks    Support the Sun Sparcworks system.
  176. --with-energize        Support the Lucid Energize system.
  177. --with-socks        Compile with support for SOCKS.
  178. --with-xface        Compile with support for X-Face mail header
  179.               conversion (auto-detected).
  180. --with-gif        Compile with support for GIF image conversion
  181.             (not yet implemented).
  182. --with-jpeg        Compile with support for JPEG image conversion
  183.             (not yet implemented).
  184. --with-png        Compile with support for PNG image conversion
  185.             (not yet implemented).
  186. --external-widget    Compile with external widget support.
  187. --with-sound=native    Compile with native sound support (auto-detected).
  188. --with-sound=nas    Compile with network sound support.
  189. --with-sound=both    Compile with native and network sound support.
  190. --native-sound-lib=LIB    Native sound support library.
  191. --with-epoch        Compile with additional Epoch compatibility.
  192. --with-i18n3        Compile with I18N level 3 (not fully supported).
  193. --with-mule        Compile with Mule support.  This doesn't work yet.
  194.  
  195. Debugging options:
  196.  
  197. --debug            Compile with support for debugging XEmacs.
  198.             (Causes code-size increase but no loss of speed.)
  199. --error-checking=TYPE[,TYPE]...
  200.             Compile with internal error-checking added.
  201.             Valid types are extents, bufpos, malloc, gc, typecheck.
  202. --error-checking=none    Disable all internal error-checking.
  203. --error-checking=all    Enable all internal error-checking.
  204.  
  205. Other options:
  206.  
  207. --puresize=VALUE    Override default amount of space for pure Lisp code.
  208. --rel-alloc        Use the relocating allocator (default for this option
  209.               is system-dependent).
  210.  
  211. You may also specify any of the \`path' variables found in
  212. Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
  213. so on.  Note that we recommend against explicitly setting any of these
  214. variables.  See the INSTALL file for a complete list plus the reasons
  215. we advise not changing them.  Specifying a \'path' variable will override
  216. the --run-in-place value.
  217.  
  218. If successful, ${progname} leaves its status in config.status.  If
  219. unsuccessful after disturbing the status quo, it removes config.status."
  220.  
  221.  
  222. #### Option processing.
  223.  
  224. ### Record all the arguments, so we can save them in config.status.
  225. arguments="$@"
  226.  
  227. ### Shell Magic: Quote the quoted arguments in ARGUMENTS.  At a later date,
  228. ### in order to get the arguments back in $@, we have to do an
  229. ###  `eval set x "$quoted_arguments"; shift'.
  230. quoted_arguments=
  231. for i in "$@"; do
  232.    quoted_arguments="$quoted_arguments '$i'"
  233. done
  234.  
  235. ### Don't use shift -- that destroys the argument list, which autoconf needs
  236. ### to produce config.status.  It turns out that "set - ${arguments}" doesn't
  237. ### work portably.
  238. ### However, it also turns out that many shells cannot expand ${10} at all.
  239. ### So using an index variable doesn't work either.  It is possible to use
  240. ### some shell magic to make 'set x "$arguments"; shift' work portably.
  241. while [ $# != 0 ]; do
  242.   arg="$1"; shift
  243.   case "${arg}" in
  244.  
  245.     ## Anything starting with a hyphen we assume is an option.
  246.     -* )
  247.       ## Separate the switch name from the value it's being given.
  248.       case "${arg}" in
  249.         -*=*)
  250.       opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([^=]*\)=.*$:\1:'`
  251.       val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[^=]*=\(.*\)$:\1:'`
  252.       valomitted=no
  253.     ;;
  254. #         ## special case these strings since echo may
  255. #         ## silently eat them.
  256. #         --help ) opt=help val=yes valomitted=yes ;;
  257. #         --version ) opt=version val=yes valomitted=yes ;;
  258. #         -e ) opt=e val=yes valomitted=yes ;;
  259. #         -E ) opt=E val=yes valomitted=yes ;;
  260. #         -n ) opt=n val=yes valomitted=yes ;;
  261.         -*)
  262.           ## If FOO is a boolean argument, --FOO is equivalent to
  263.           ## --FOO=yes.  Otherwise, the value comes from the next
  264.           ## argument - see below.
  265.       opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
  266.           val="yes"
  267.           valomitted=yes
  268.         ;;
  269.       esac
  270.  
  271.       ## Change `-' in the option name to `_'.
  272.       optname="${opt}"
  273.       opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
  274.  
  275.       ## Process the option.
  276.       case "${opt}" in
  277.  
  278.         ## Has the user specified which window systems they want to support?
  279.         "with_x" | "with_x11" )
  280.       ## Make sure the value given was either "yes" or "no".
  281.       case "${val}" in
  282.         y | ye | yes )    val=yes ;;
  283.         n | no )        val=no  ;;
  284.         * )
  285.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  286. Set it to either \`yes' or \`no'."
  287.            echo "${short_usage}") >&2
  288.           exit 1
  289.         ;;
  290.       esac
  291.       eval "with_x11=\"${val}\""
  292.         ;;
  293.  
  294.     ## Has the user specified whether or not they want GCC or LCC?
  295.     "with_gcc" | "with_lcc" )
  296.       ## Make sure the value given was either "yes" or "no".
  297.       case "${val}" in
  298.         y | ye | yes )    val=yes ;;
  299.         n | no )        val=no  ;;
  300.         * )
  301.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  302. Set it to either \`yes' or \`no'."
  303.            echo "${short_usage}") >&2
  304.           exit 1
  305.         ;;
  306.       esac
  307.           eval "${opt}=\"${val}\""
  308.       if [ "${with_gcc}" = "yes" ] && [ "${with_lcc}" = "yes" ] ; then
  309.         (echo "${progname}: only one of --with-gcc and --with-lcc may be specified."
  310.          echo "${short_usage}") >&2
  311.         exit 1
  312.       fi
  313.         ;;
  314.  
  315.         ## Has the user specified a compiler to use?
  316.     "compiler" )
  317.       ## If the value was omitted, get it from the next argument.
  318.       if [ "${valomitted}" = "yes" ]; then
  319.         ## Get the next argument from the argument list, if there is one.
  320.             if [ $# = 0 ]; then
  321.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  322.     \`--${optname}=FOO'."
  323.            echo "${short_usage}") >&2
  324.           exit 1
  325.         fi
  326.         val="$1"; shift
  327.       fi
  328.           compiler="${val}"
  329.     ;;
  330.  
  331.         ## Has the user specified a source directory?
  332.     "srcdir" )
  333.       ## If the value was omitted, get it from the next argument.
  334.       if [ "${valomitted}" = "yes" ]; then
  335.         ## Get the next argument from the argument list, if there is one.
  336.             if [ $# = 0 ]; then
  337.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  338.     \`--${optname}=FOO'."
  339.            echo "${short_usage}") >&2
  340.           exit 1
  341.         fi
  342.         val="$1"; shift
  343.       fi
  344.           srcdir="${val}"
  345.     ;;
  346.  
  347.         ## Has the user requested sound support?
  348.     "with_sound" )
  349.       ## value can be native, nas or both. yes is allowed 
  350.       ## as a backwards compatible synonym for native
  351.       case "${val}" in
  352.         y | ye | yes )            val=native ;;
  353.         n | no | non | none )        val=no;;
  354.         na | nat | nati | nativ | native )    val=native  ;;
  355.         ne | net | neta | netau | netaud | netaudi | netaudio | nas )    val=nas  ;;
  356.         b | bo | bot | both )        val=both;;
  357.         * )
  358.           (echo "${progname}: the \`--${optname}' option should have one of the values \`native', \`nas', \`both', or \`none'."
  359.            echo "${short_usage}") >&2
  360.           exit 1
  361.         ;;
  362.       esac
  363.           eval "${opt}=\"${val}\""
  364.         ;;
  365.  
  366.         ## Has the user specified a native sound library?
  367.     ## (the reason for this flag is that, under Suns, both NAS sound
  368.     ## and native sound call their library libaudio.a)
  369.     "native_sound_lib" )
  370.       ## If the value was omitted, get it from the next argument.
  371.       if [ "${valomitted}" = "yes" ]; then
  372.         ## Get the next argument from the argument list, if there is one.
  373.             if [ $# = 0 ]; then
  374.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  375.     \`--${optname}=FOO'."
  376.            echo "${short_usage}") >&2
  377.           exit 1
  378.         fi
  379.         val="$1"; shift
  380.       fi
  381.           native_sound_lib="${val}"
  382.     ;;
  383.  
  384.         ## Has the user requested extra Epoch compatibility?
  385.     "with_epoch" )
  386.       ## Make sure the value given was either "yes" or "no".
  387.       case "${val}" in
  388.         y | ye | yes )    val=yes ;;
  389.         n | no )        val=no  ;;
  390.         * )
  391.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  392. Set it to either \`yes' or \`no'."
  393.            echo "${short_usage}") >&2
  394.           exit 1
  395.         ;;
  396.       esac
  397.           eval "${opt}=\"${val}\""
  398.         ;;
  399.  
  400.         ## Has the user specified a change to the default linking?
  401.     "dynamic" )
  402.       ## Make sure the value given was either "yes" or "no".
  403.       case "${val}" in
  404.         y | ye | yes )    val=yes ;;
  405.         n | no )        val=no  ;;
  406.         * )
  407.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  408. Set it to either \`yes' or \`no'."
  409.            echo "${short_usage}") >&2
  410.           exit 1
  411.         ;;
  412.       esac
  413.           eval "${opt}=\"${val}\""
  414.         ;;
  415.  
  416.         ## Has the user specified Quantify support?
  417.     "quantify" )
  418.       ## Make sure the value given was either "yes" or "no".
  419.       case "${val}" in
  420.         y | ye | yes )    val=yes ;;
  421.         n | no )        val=no  ;;
  422.         * )
  423.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  424. Set it to either \`yes' or \`no'."
  425.            echo "${short_usage}") >&2
  426.           exit 1
  427.         ;;
  428.       esac
  429.           eval "${opt}=\"${val}\""
  430.         ;;
  431.  
  432.         ## Has the user requested SOCKS support?
  433.     "with_socks" )
  434.       ## Make sure the value given was either "yes" or "no".
  435.       case "${val}" in
  436.         y | ye | yes )    val=yes ;;
  437.         n | no )        val=no  ;;
  438.         * )
  439.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  440. Set it to either \`yes' or \`no'."
  441.            echo "${short_usage}") >&2
  442.           exit 1
  443.         ;;
  444.       esac
  445.           eval "${opt}=\"${val}\""
  446.         ;;
  447.  
  448.         ## Has the user requested XPM support?
  449.     "with_xpm" )
  450.       ## Make sure the value given was either "yes" or "no".
  451.       case "${val}" in
  452.         y | ye | yes )    val=yes ;;
  453.         n | no )        val=no  ;;
  454.         * )
  455.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  456. Set it to either \`yes' or \`no'."
  457.            echo "${short_usage}") >&2
  458.           exit 1
  459.         ;;
  460.       esac
  461.           eval "${opt}=\"${val}\""
  462.         ;;
  463.  
  464.         ## Has the user requested XFACE support?
  465.     "with_xface" )
  466.       ## Make sure the value given was either "yes" or "no".
  467.       case "${val}" in
  468.         y | ye | yes )    val=yes ;;
  469.         n | no )        val=no  ;;
  470.         * )
  471.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  472. Set it to either \`yes' or \`no'."
  473.            echo "${short_usage}") >&2
  474.           exit 1
  475.         ;;
  476.       esac
  477.           eval "${opt}=\"${val}\""
  478.         ;;
  479.  
  480.         ## Has the user requested GIF support?
  481.     "with_gif" )
  482.       ## Make sure the value given was either "yes" or "no".
  483.       case "${val}" in
  484.         y | ye | yes )    val=yes ;;
  485.         n | no )        val=no  ;;
  486.         * )
  487.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  488. Set it to either \`yes' or \`no'."
  489.            echo "${short_usage}") >&2
  490.           exit 1
  491.         ;;
  492.       esac
  493.           eval "${opt}=\"${val}\""
  494.         ;;
  495.  
  496.         ## Has the user requested JPEG support?
  497.     "with_jpeg" )
  498.       ## Make sure the value given was either "yes" or "no".
  499.       case "${val}" in
  500.         y | ye | yes )    val=yes ;;
  501.         n | no )        val=no  ;;
  502.         * )
  503.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  504. Set it to either \`yes' or \`no'."
  505.            echo "${short_usage}") >&2
  506.           exit 1
  507.         ;;
  508.       esac
  509.           eval "${opt}=\"${val}\""
  510.         ;;
  511.  
  512.         ## Has the user requested PNG support?
  513.     "with_png" )
  514.       ## Make sure the value given was either "yes" or "no".
  515.       case "${val}" in
  516.         y | ye | yes )    val=yes ;;
  517.         n | no )        val=no  ;;
  518.         * )
  519.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  520. Set it to either \`yes' or \`no'."
  521.            echo "${short_usage}") >&2
  522.           exit 1
  523.         ;;
  524.       esac
  525.           eval "${opt}=\"${val}\""
  526.         ;;
  527.  
  528.         ## Has the user requested NeXTstep support?
  529.     "with_ns" )
  530.       ## Make sure the value given was either "yes" or "no".
  531.       case "${val}" in
  532.         y | ye | yes )    val=yes ;;
  533.         n | no )        val=no  ;;
  534.         * )
  535.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  536. Set it to either \`yes' or \`no'."
  537.            echo "${short_usage}") >&2
  538.           exit 1
  539.         ;;
  540.       esac
  541.           eval "${opt}=\"${val}\""
  542.         ;;
  543.  
  544.         ## Has the user requested that assertions be used?
  545.     "use_assertions" )
  546.       ## Make sure the value given was either "yes" or "no".
  547.       case "${val}" in
  548.         y | ye | yes )    val=yes ;;
  549.         n | no )        val=no  ;;
  550.         * )
  551.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  552. Set it to either \`yes' or \`no'."
  553.            echo "${short_usage}") >&2
  554.           exit 1
  555.         ;;
  556.       esac
  557.           eval "${opt}=\"${val}\""
  558.         ;;
  559.  
  560.         ## Has the user requested error-checking?
  561.     "error_checking" )
  562.       ## value can be all, none, and/or a list of categories to check.
  563.       ## Example: --error-checking=all,noextents,nobufpos
  564.       ## Example: --error-checking=none,malloc,gc
  565.       
  566.       for x in `echo "${val}" | sed 's/,/ /'` ; do
  567.         case "${x}" in
  568.           # all and none are only permitted as the first in the list.
  569.           n | no | non | none ) new_default=no ;;
  570.           a | al | all )        new_default=yes ;;
  571.  
  572.           extents )       error_check_extents=yes ;;
  573.           noextents )     error_check_extents=no ;;
  574.  
  575.           typecheck )     error_check_typecheck=yes ;;
  576.           notypecheck )   error_check_typecheck=no ;;
  577.  
  578.           bufpos )          error_check_bufpos=yes ;;
  579.           nobufpos )      error_check_bufpos=no ;;
  580.  
  581.           gc )          error_check_gc=yes ;;
  582.           nogc )          error_check_gc=no ;;
  583.  
  584.           malloc )          error_check_malloc=yes ;;
  585.           nomalloc )      error_check_malloc=no ;;
  586.           
  587.           * ) bogus_error_check=yes ;;
  588.         esac
  589.         if [ "$bogus_error_check" -o \
  590.              \( -n "$new_default" -a -n "$echeck_notfirst" \) ]; then
  591.         ( echo "${progname}: Valid types for the \`--${optname}' option are:"
  592.         if [ $error_check_default = yes ]; then
  593.           echo "\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
  594.         else
  595.           echo "\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
  596.         fi
  597.         echo "${short_usage}" ) >&2
  598.         exit 1
  599.         elif [ "$new_default" ]; then
  600.         error_check_extents=$new_default
  601.         error_check_typecheck=$new_default
  602.         error_check_bufpos=$new_default
  603.         error_check_gc=$new_default
  604.         error_check_malloc=$new_default
  605.         new_default=    # reset this
  606.         fi
  607.         echeck_notfirst=true
  608.       done
  609.     ;;
  610.  
  611.         ## Has the user requested external widget support?
  612.     "external_widget" )
  613.       ## Make sure the value given was either "yes" or "no".
  614.       case "${val}" in
  615.         y | ye | yes )    val=yes ;;
  616.         n | no )        val=no  ;;
  617.         * )
  618.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  619. Set it to either \`yes' or \`no'."
  620.            echo "${short_usage}") >&2
  621.           exit 1
  622.         ;;
  623.       esac
  624.           eval "${opt}=\"${val}\""
  625.         ;;
  626.  
  627.         ## Has the user requested that const be used?
  628.     "const_is_losing" )
  629.       ## Make sure the value given was either "yes" or "no".
  630.       case "${val}" in
  631.         y | ye | yes )    val=yes ;;
  632.         n | no )        val=no  ;;
  633.         * )
  634.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  635. Set it to either \`yes' or \`no'."
  636.            echo "${short_usage}") >&2
  637.           exit 1
  638.         ;;
  639.       esac
  640.           eval "${opt}=\"${val}\""
  641.         ;;
  642.  
  643.         ## Has the user mentioned that they don't have Xmu?
  644.     "dont_have_xmu" )
  645.       ## Make sure the value given was either "yes" or "no".
  646.       case "${val}" in
  647.         y | ye | yes )    val=yes ;;
  648.         n | no )        val=no  ;;
  649.         * )
  650.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  651. Set it to either \`yes' or \`no'."
  652.            echo "${short_usage}") >&2
  653.           exit 1
  654.         ;;
  655.       esac
  656.           eval "${opt}=\"${val}\""
  657.         ;;
  658.  
  659.         ## Has the user specified a value for PURESIZE?
  660.     "puresize" )
  661.       ## If the value was omitted, get it from the next argument.
  662.       if [ "${valomitted}" = "yes" ]; then
  663.         ## Get the next argument from the argument list, if there is one.
  664.             if [ $# = 0 ]; then
  665.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  666.     \`--${optname}=FOO'."
  667.            echo "${short_usage}") >&2
  668.           exit 1
  669.         fi
  670.         val="$1"; shift
  671.       fi
  672.           puresize="${val}"
  673.     ;;
  674.  
  675.         ## Has the user specified explicit instructions for rel_alloc?
  676.     "rel_alloc" )
  677.       ## Make sure the value given was either "yes", "no", or "default".
  678.       case "${val}" in
  679.         y | ye | yes )    val=yes ;;
  680.         n | no )        val=no  ;;
  681.         d | de | def | defa | defau | defaul | default )
  682.                 val=default ;;
  683.         * )
  684.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value or \`default'.
  685. Set it to either \`yes', \`no', or \`default'."
  686.            echo "${short_usage}") >&2
  687.           exit 1
  688.         ;;
  689.       esac
  690.           eval "${opt}=\"${val}\""
  691.         ;;
  692.  
  693.     ## Has the user tried to tell us where the X files are?
  694.     ## I think these are dopey, but no less than three alpha
  695.     ## testers, at large sites, have said they have their X files
  696.     ## installed in odd places.
  697.     "x_includes" )
  698.       ## If the value was omitted, get it from the next argument.
  699.       if [ "${valomitted}" = "yes" ]; then
  700.         ## Get the next argument from the argument list, if there is one.
  701.             if [ $# = 0 ]; then
  702.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  703.     \`--${optname}=/usr/local/X11/include'."
  704.            echo "${short_usage}") >&2
  705.           exit 1
  706.         fi
  707.             val="$1"; shift
  708.       fi
  709.       x_includes="${val}"
  710.         ;;
  711.     "x_libraries" )
  712.       ## If the value was omitted, get it from the next argument.
  713.       if [ "${valomitted}" = "yes" ]; then
  714.         ## Get the next argument from the argument list, if there is one.
  715.             if [ $# = 0 ]; then
  716.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  717.     \`--${optname}=/usr/local/X11/lib'."
  718.            echo "${short_usage}") >&2
  719.           exit 1
  720.         fi
  721.             val="$1"; shift
  722.       fi
  723.       x_libraries="${val}"
  724.         ;;
  725.  
  726.     "site_includes" )
  727.       ## If the value was omitted, get it from the next argument.
  728.       if [ "${valomitted}" = "yes" ]; then
  729.         ## Get the next argument from the argument list, if there is one.
  730.             if [ $# = 0 ]; then
  731.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  732.     \`--${optname}=/usr/local/X11/include'."
  733.            echo "${short_usage}") >&2
  734.           exit 1
  735.         fi
  736.             val="$1"; shift
  737.       fi
  738.       site_includes="${val}"
  739.       ;;
  740.     
  741.     "site_libraries" )
  742.       ## If the value was omitted, get it from the next argument.
  743.       if [ "${valomitted}" = "yes" ]; then
  744.         ## Get the next argument from the argument list, if there is one.
  745.             if [ $# = 0 ]; then
  746.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  747.     \`--${optname}=/usr/local/X11/lib'."
  748.            echo "${short_usage}") >&2
  749.           exit 1
  750.         fi
  751.             val="$1"; shift
  752.       fi
  753.       site_libraries="${val}"
  754.         ;;
  755.  
  756.     "site_runtime_libraries" )
  757.       ## If the value was omitted, get it from the next argument.
  758.       if [ "${valomitted}" = "yes" ]; then
  759.         ## Get the next argument from the argument list, if there is one.
  760.             if [ $# = 0 ]; then
  761.           (echo "${progname}: You must give a value for the \`--${optname}' option, as in
  762.     \`--${optname}=/usr/local/X11/lib'."
  763.            echo "${short_usage}") >&2
  764.           exit 1
  765.         fi
  766.             val="$1"; shift
  767.       fi
  768.       site_runtime_libraries="${val}"
  769.         ;;
  770.  
  771.         ## Has the user specified the developer configuration?
  772.         ## Note that the user still has the option of explicitly setting 
  773.         ## a path option.
  774.     "run_in_place" )
  775.       ## Make sure the value given was either "yes" or "no".
  776.       case "${val}" in
  777.         y | ye | yes )    val=yes ;;
  778.         n | no )        val=no  ;;
  779.         * )
  780.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  781. Set it to either \`yes' or \`no'."
  782.            echo "${short_usage}") >&2
  783.           exit 1
  784.         ;;
  785.       esac
  786.           eval "${opt}=\"${val}\""
  787.         ;;
  788.  
  789.     ## Has the user specified one of the path options?
  790.     prefix | exec_prefix | bindir | datadir | statedir | libdir | \
  791.     mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
  792.     sitelispdir | docdir )
  793.        ## If the value was omitted, get it from the next argument.
  794.        if [ "${valomitted}" = "yes" ]; then
  795.           if [ $# = 0 ]; then
  796.          (echo \
  797. "$progname: You must give a value for the \`--${optname}' option,";
  798.           echo \
  799. "as in \`--${optname}=`eval echo '$'$optname`.'"
  800.           echo "$short_usage") >&2
  801.          exit 1
  802.           fi
  803.           val="$1"; shift
  804.        fi
  805.        eval "${opt}=\"${val}\""
  806.     ;;
  807.  
  808.     ## Has the user specified values to override CFLAGS?
  809.     cflags )
  810.        ## If the value was omitted, get it from the next argument.
  811.        if [ "${valomitted}" = "yes" ]; then
  812.           if [ $# = 0 ]; then
  813.          (echo \
  814. "$progname: You must give a value for the \`--${optname}' option,";
  815.           echo \
  816. "as in \`--${optname}=`eval echo '$'$optname`-g -O'"
  817.           echo "$short_usage") >&2
  818.          exit 1
  819.           fi
  820.           val="$1"; shift
  821.        fi
  822.        eval "${opt}=\"${val}\""
  823.        eval "${opt}_specified=1"
  824.     ;;
  825.  
  826.     ## Verbose flag, tested by autoconf macros.
  827.     "verbose" )
  828.       verbose=yes
  829.     ;;
  830.  
  831.     ## --no-create added by autoconf for use by config.status
  832.     "no_create" )
  833.     ;;
  834.  
  835.     ## Has the user asked for some help?
  836.     "usage" | "help" )
  837.       if [ "x$PAGER" = x ]
  838.       then
  839.         echo "${short_usage}" | more
  840.       else
  841.         echo "${short_usage}" | $PAGER
  842.       fi
  843.       exit
  844.     ;;
  845.  
  846.     ## Has the user specified what toolkit to use for the menubars,
  847.     ## scrollbar or dialogs?
  848.     "with_menubars" | "with_scrollbars" | "with_dialogs" )
  849.       ## value can be lucid, motif, or athena.
  850.       case "${val}" in
  851.         l | lu | luc | luci | lucid )        val=lucid  ;;
  852.         m | mo | mot | moti | motif )        val=motif  ;;
  853.         a | at | ath | athe | athen | athena )    val=athena ;;
  854.         * )
  855.           (echo "${progname}: the \`--${optname}' option should have one of the values \`lucid', \`motif', or \`athena'."
  856.            echo "${short_usage}") >&2
  857.           exit 1
  858.         ;;
  859.       esac
  860.       eval "${opt}=\"${val}\""
  861.     ;;
  862.  
  863.     ## Has the user specified whether or not they want to use ToolTalk?
  864.     "with_tooltalk" )
  865.       ## Make sure the value given was either "yes" or "no".
  866.       case "${val}" in
  867.         y | ye | yes )    val=yes ;;
  868.         n | no )        val=no  ;;
  869.         * )
  870.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  871. Set it to either \`yes' or \`no'."
  872.            echo "${short_usage}") >&2
  873.           exit 1
  874.         ;;
  875.       esac
  876.           eval "${opt}=\"${val}\""
  877.         ;;
  878.  
  879.     ## Has the user specified whether or not they want I18N3?
  880.     "with_i18n3" )
  881.       ## Make sure the value given was either "yes" or "no".
  882.       case "${val}" in
  883.         y | ye | yes )    val=yes ;;
  884.         n | no )        val=no  ;;
  885.         * )
  886.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  887. Set it to either \`yes' or \`no'."
  888.            echo "${short_usage}") >&2
  889.           exit 1
  890.         ;;
  891.       esac
  892.           eval "${opt}=\"${val}\""
  893.         ;;
  894.  
  895.     ## Has the user specified whether or not they want Mule?
  896.     "with_mule" )
  897.       ## Make sure the value given was either "yes" or "no".
  898.       case "${val}" in
  899.         y | ye | yes )    val=yes ;;
  900.         n | no )        val=no  ;;
  901.         * )
  902.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  903. Set it to either \`yes' or \`no'."
  904.            echo "${short_usage}") >&2
  905.           exit 1
  906.         ;;
  907.       esac
  908.           eval "${opt}=\"${val}\""
  909.         ;;
  910.  
  911.     ## Has the user specified whether or not they want to use SparcWorks?
  912.     "with_sparcworks" )
  913.       ## Make sure the value given was either "yes" or "no".
  914.       case "${val}" in
  915.         y | ye | yes )    val=yes ;;
  916.         n | no )        val=no  ;;
  917.         * )
  918.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  919. Set it to either \`yes' or \`no'."
  920.            echo "${short_usage}") >&2
  921.           exit 1
  922.         ;;
  923.       esac
  924.           eval "${opt}=\"${val}\""
  925.       if [ "${with_sparcworks}" = "yes" ]; then
  926.             with_tooltalk='yes'
  927.       fi
  928.         ;;
  929.  
  930.     ## Does the user want usage tracking?
  931.     "usage_tracking" )
  932.       ## Make sure the value given was either "yes" or "no".
  933.       case "${val}" in
  934.         y | ye | yes )    val=yes ;;
  935.         n | no )        val=no  ;;
  936.         * )
  937.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  938. Set it to either \`yes' or \`no'."
  939.            echo "${short_usage}") >&2
  940.           exit 1
  941.         ;;
  942.       esac
  943.           eval "${opt}=\"${val}\""
  944.         ;;
  945.  
  946.     ## Does the user want additional debugging capability?
  947.     "debug" )
  948.       ## Make sure the value given was either "yes" or "no".
  949.       case "${val}" in
  950.         y | ye | yes )    val=yes ;;
  951.         n | no )        val=no  ;;
  952.         * )
  953.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  954. Set it to either \`yes' or \`no'."
  955.            echo "${short_usage}") >&2
  956.           exit 1
  957.         ;;
  958.       esac
  959.           eval "${opt}=\"${val}\""
  960.           if [ "${debug}" = "yes" ]; then
  961.             use_assertions='yes'
  962.           fi
  963.         ;;
  964.  
  965.     ## Has the user specified whether or not they want to use Energize?
  966.     "with_energize" )
  967.       ## Make sure the value given was either "yes" or "no".
  968.       case "${val}" in
  969.         y | ye | yes )    val=yes ;;
  970.         n | no )        val=no  ;;
  971.         * )
  972.           (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
  973. Set it to either \`yes' or \`no'."
  974.            echo "${short_usage}") >&2
  975.           exit 1
  976.         ;;
  977.       esac
  978.           eval "${opt}=\"${val}\""
  979.       if [ "${with_energize}" = "yes" ]; then
  980.         with_menubars='lucid'
  981.         with_scrollbars='motif'
  982.         with_dialogs='motif'
  983.         with_tooltalk='yes'
  984.         internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
  985.       fi
  986.         ;;
  987.  
  988.         ## Fail on unrecognized arguments.
  989.     * )
  990.       (echo "${progname}: Error: unrecognized option ${arg}"
  991.        echo ""
  992.            echo "${short_usage}") >& 2
  993.       exit 1
  994.     ;;
  995.  
  996.       esac
  997.     ;;
  998.  
  999.     ## Anything not starting with a hyphen we assume is a
  1000.     ## configuration name.
  1001.     *)
  1002.       configuration=${arg}
  1003.     ;;
  1004.  
  1005.   esac
  1006. done
  1007.  
  1008. ### Get the arguments back.  See the diatribe on Shell Magic above.
  1009. eval set x "$quoted_arguments"; shift
  1010.  
  1011. if [ "${configuration}" = "" ]; then
  1012.   echo '- You did not tell me what kind of host system you want to configure.
  1013. - I will attempt to guess the kind of system this is.' 1>&2
  1014.   guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
  1015.   if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
  1016.     echo "- Looks like this is a ${configuration}" 1>&2
  1017.   else
  1018.     echo '- Failed to guess the system type.  You need to tell me.' 1>&2
  1019.     echo "${short_usage}" >&2
  1020.     exit 1
  1021.   fi
  1022. fi
  1023.  
  1024. #### Decide where the source is.
  1025. case "${srcdir}" in
  1026.  
  1027.   ## If it's not specified, see if  `.' or `..' might work.
  1028.   "" )
  1029.     confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
  1030.     if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
  1031.       srcdir="${confdir}"
  1032.     else
  1033.       if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
  1034.         srcdir='.'
  1035.       else
  1036.         if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
  1037.       srcdir='..'
  1038.         else
  1039.       (echo "\
  1040. ${progname}: Neither the current directory nor its parent seem to
  1041. contain the XEmacs sources.  If you do not want to build XEmacs in its
  1042. source tree, you should run \`${progname}' in the directory in which
  1043. you wish to build XEmacs, using its \`--srcdir' option to say where the
  1044. sources may be found."
  1045.         echo "${short_usage}") >&2
  1046.       exit 1
  1047.         fi
  1048.       fi
  1049.     fi
  1050.   ;;
  1051.  
  1052.   ## Otherwise, check if the directory they specified is okay.
  1053.   * )
  1054.     if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
  1055.       (echo "\
  1056. ${progname}: The directory specified with the \`--srcdir' option,
  1057. \`${srcdir}', doesn't seem to contain the XEmacs sources.  You should
  1058. either run the \`${progname}' script at the top of the XEmacs source
  1059. tree, or use the \`--srcdir' option to specify where the XEmacs sources
  1060. are."
  1061.        echo "${short_usage}") >&2
  1062.       exit 1
  1063.     fi
  1064.   ;;
  1065. esac
  1066.  
  1067. ## We check for this now instead of later when we check for other
  1068. ## programs because we need to use its return value now.
  1069.  test -n "$silent" || echo "checking for ln -s"
  1070. rm -f conftestdata
  1071. if ln -s X conftestdata 2>/dev/null
  1072. then
  1073.   rm -f conftestdata
  1074.   LN_S="ln -s"
  1075. else
  1076.   LN_S=ln
  1077. fi
  1078.  
  1079.  
  1080.  
  1081. #### Make symlinks for etc, lisp, and info directories while the path
  1082. #### is still relative.  We don't symlink lock because someone may
  1083. #### have stuck the source on a read-only partition.  Instead we'll
  1084. #### create it as an actual directory later on if it doesn't already
  1085. #### exist.
  1086. for dir in etc lisp info
  1087. do
  1088.   if [ ! -d $dir ]; then
  1089.     echo Making symbolic link to ${srcdir}/$dir
  1090.     ${LN_S} ${srcdir}/$dir .
  1091.   fi
  1092. done
  1093.  
  1094. #### Make srcdir absolute, if it isn't already.  It's important to
  1095. #### avoid running the path through pwd unnecessary, since pwd can
  1096. #### give you automounter prefixes, which can go away.
  1097. case "${srcdir}" in
  1098.   /* ) ;;
  1099.   . )
  1100.     ## We may be able to use the $PWD environment variable to make this
  1101.     ## absolute.  But sometimes PWD is inaccurate.
  1102.     if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ] ; then
  1103.       srcdir="$PWD"
  1104.     else
  1105.       srcdir="`(cd ${srcdir}; pwd)`"
  1106.     fi
  1107.   ;;
  1108.   *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
  1109. esac
  1110.  
  1111. #### Check if the source directory already has a configured system in it.
  1112. if [ `pwd` != `sh -c cd ${srcdir} && pwd` ] \
  1113.    && [ -f "${srcdir}/src/config.h" ] ; then
  1114.   (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
  1115.    echo "   as a build directory right now; it has been configured in its own"
  1116.    echo "   right.  To configure in another directory as well, you MUST"
  1117.    echo "   use GNU make.  If you do not have GNU make, then you must"
  1118.    echo "   now do \`make distclean' in ${srcdir},"
  1119.    echo "   and then run ${progname} again.") >&2
  1120.   extrasub='/^VPATH[     ]*=/c\
  1121. vpath %.c $(srcdir)\
  1122. vpath %.h $(srcdir)\
  1123. vpath %.y $(srcdir)\
  1124. vpath %.l $(srcdir)\
  1125. vpath %.s $(srcdir)\
  1126. vpath %.in $(srcdir)'
  1127. fi
  1128.  
  1129. ### Make the necessary directories, if they don't exist.
  1130. for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
  1131.   if [ ! -d ${dir} ]; then
  1132.     mkdir ${dir}
  1133.   fi
  1134. done
  1135. if [ "${with_energize}" = "yes" ] && [ ! -d ./lwlib/energize ] ; then
  1136.   mkdir ./lwlib/energize
  1137. fi
  1138.  
  1139. #### Given the configuration name, set machfile and opsysfile to the
  1140. #### names of the m/*.h and s/*.h files we should use.
  1141.  
  1142. ### Canonicalize the configuration name.
  1143. echo "checking the configuration name"
  1144. # allow -energize prefix on configuration name
  1145. internal_configuration=`echo ${configuration} | sed 's/-energize//'`
  1146. # allow --sparcworks prefix on configuration name
  1147. internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
  1148. if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
  1149.   exit $?
  1150. fi
  1151.  
  1152. ### If you add support for a new configuration, add code to this
  1153. ### switch statement to recognize your configuration name and select
  1154. ### the appropriate operating system and machine description files.
  1155.  
  1156. ### You would hope that you could choose an m/*.h file pretty much
  1157. ### based on the machine portion of the configuration name, and an s-
  1158. ### file based on the operating system portion.  However, it turns out
  1159. ### that each m/*.h file is pretty manufacturer-specific - for
  1160. ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
  1161. ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
  1162. ### machines.  So we basically have to have a special case for each
  1163. ### configuration name.
  1164. ###
  1165. ### As far as handling version numbers on operating systems is
  1166. ### concerned, make sure things will fail in a fixable way.  If
  1167. ### /etc/MACHINES doesn't say anything about version numbers, be
  1168. ### prepared to handle anything reasonably.  If version numbers
  1169. ### matter, be sure /etc/MACHINES says something about it.
  1170. ###
  1171. ### Eric Raymond says we should accept strings like "sysvr4" to mean
  1172. ### "System V Release 4"; he writes, "The old convention encouraged
  1173. ### confusion between `system' and `release' levels'."
  1174.  
  1175. machine='' opsys='' unported=no need_dynodump=no
  1176. case "${canonical}" in
  1177.  
  1178.   ## NetBSD ports
  1179.   *-*-netbsd* )
  1180.     opsys=netbsd
  1181.     case "${canonical}" in
  1182.       sparc-*-netbsd*)        machine=sparc ;;
  1183.       i[345]86-*-netbsd*) machine=intel386 ;;
  1184.       hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
  1185.                       # Yes, this is somewhat bogus.
  1186.                       machine=hp9000s300 ;;
  1187.       pc532-*-netbsd* | ns32k-*-netbsd* )        machine=ns32000 ;;
  1188.       pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
  1189.     esac
  1190.   ;;
  1191.  
  1192.   ## Acorn RISCiX:
  1193.   arm-acorn-riscix1.1* )
  1194.     machine=acorn opsys=riscix1-1
  1195.   ;;
  1196.   arm-acorn-riscix1.2* | arm-acorn-riscix )
  1197.     machine=acorn opsys=riscix1-2
  1198.   ;;
  1199.  
  1200.   ## Alliant machines
  1201.   ## Strictly speaking, we need the version of the alliant operating
  1202.   ## system to choose the right machine file, but currently the
  1203.   ## configuration name doesn't tell us enough to choose the right
  1204.   ## one; we need to give alliants their own operating system name to
  1205.   ## do this right.  When someone cares, they can help us.
  1206.   fx80-alliant-* )
  1207.     machine=alliant4 opsys=bsd4-2
  1208.   ;;
  1209.   i860-alliant-* )
  1210.     machine=alliant-2800 opsys=bsd4-3
  1211.   ;;
  1212.  
  1213.   ## DECstations (XEmacs change)
  1214.   alpha-dec-osf1.3 | alpha-dec-osf2* )
  1215.     machine=alpha opsys=decosf1-3
  1216.   ;;
  1217.   alpha-dec-osf1.2 | alpha-dec-osf1* )
  1218.     machine=alpha opsys=decosf1-2
  1219.   ;;
  1220.  
  1221.   ## Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
  1222.   alpha-dec-osf3.[2-9] )
  1223.     machine=alpha opsys=decosf3-2
  1224.   ;;
  1225.   alpha-dec-osf3* )
  1226.     machine=alpha opsys=decosf3-1
  1227.   ;;
  1228.  
  1229.   ## Altos 3068
  1230.   m68*-altos-sysv* )
  1231.     machine=altos opsys=usg5-2
  1232.   ;;
  1233.     
  1234.   ## Amdahl UTS
  1235.   580-amdahl-sysv* )
  1236.     machine=amdahl opsys=usg5-2-2
  1237.   ;;
  1238.  
  1239.   ## Apollo, Domain/OS
  1240.   m68*-apollo-* )
  1241.     machine=apollo opsys=bsd4-3
  1242.   ;;
  1243.   
  1244.   ## AT&T 3b2, 3b5, 3b15, 3b20
  1245.   we32k-att-sysv* )
  1246.     machine=att3b opsys=usg5-2-2
  1247.   ;;
  1248.  
  1249.   ## AT&T 3b1 - The Mighty Unix PC!
  1250.   m68*-att-sysv* )
  1251.     machine=7300 opsys=usg5-2-2
  1252.   ;;
  1253.  
  1254.   ## Bull dpx20
  1255.   rs6000-bull-bosx* )
  1256.     machine=ibmrs6000 opsys=aix3-2
  1257.   ;;
  1258.  
  1259.   ## Bull dpx2
  1260.   m68*-bull-sysv3* )
  1261.     machine=dpx2 opsys=usg5-3
  1262.   ;;
  1263.  
  1264.   ## Bull sps7
  1265.   m68*-bull-sysv2* )
  1266.     machine=sps7 opsys=usg5-2
  1267.   ;;
  1268.  
  1269.   ## CCI 5/32, 6/32 -- see "Tahoe".
  1270.  
  1271.   ## Celerity
  1272.   ## I don't know what configuration name to use for this; config.sub
  1273.   ## doesn't seem to know anything about it.  Hey, Celerity users, get
  1274.   ## in touch with us!
  1275.   celerity-celerity-bsd* )
  1276.     machine=celerity opsys=bsd4-2
  1277.   ;;
  1278.  
  1279.   ## Clipper
  1280.   ## What operating systems does this chip run that XEmacs has been
  1281.   ## tested on?
  1282.   clipper-* )
  1283.     machine=clipper
  1284.     ## We'll use the catch-all code at the bottom to guess the
  1285.     ## operating system.
  1286.   ;;
  1287.  
  1288.   ## Convex
  1289.   *-convex-bsd* | *-convex-convexos* )
  1290.     machine=convex opsys=bsd4-3
  1291.     ## Prevents suprious white space in makefiles - d.m.cooke@larc.nasa.gov
  1292.     NON_GNU_CPP="cc -E -P"
  1293.   ;;
  1294.  
  1295.   ## Cubix QBx/386
  1296.   i[345]86-cubix-sysv* )
  1297.     machine=intel386 opsys=usg5-3
  1298.   ;;
  1299.  
  1300.   ## Cydra 5
  1301.   cydra*-cydrome-sysv* )
  1302.     machine=cydra5 opsys=usg5-3
  1303.   ;;
  1304.  
  1305.   ## Data General AViiON Machines
  1306.   m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
  1307.     machine=aviion opsys=dgux5-4r3
  1308.   ;;
  1309.   m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
  1310.     machine=aviion opsys=dgux5-4r2
  1311.   ;;
  1312.   m88k-dg-dgux* )
  1313.     machine=aviion opsys=dgux
  1314.   ;;
  1315.  
  1316.   mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
  1317.     machine=pmax opsys=bsd4-2
  1318.   ;;
  1319.   mips-dec-ultrix* | mips-dec-bsd* )
  1320.     machine=pmax opsys=bsd4-3
  1321.   ;;
  1322.   mips-dec-osf* )
  1323.     machine=pmax opsys=osf1
  1324.   ;;
  1325.   mips-dec-mach* )
  1326.     machine=pmax opsys=mach
  1327.   ;;
  1328.  
  1329.   ## Motorola Delta machines
  1330.   m68k-motorola-sysv* | m68000-motorola-sysv* )
  1331.     machine=delta opsys=usg5-3
  1332.     if test -z "`type gnucc | grep 'not found'`"
  1333.     then
  1334.       if test -s /etc/167config
  1335.       then CC="gnucc -m68040"
  1336.       else CC="gnucc -m68881"
  1337.       fi 
  1338.     else
  1339.       if test -z "`type gcc | grep 'not found'`"
  1340.       then CC=gcc
  1341.       else CC=cc
  1342.       fi
  1343.     fi
  1344.   ;;
  1345.   m88k-motorola-sysv4* )
  1346.     # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
  1347.     # needs POSIX_SIGNALS and therefore needs usg5-4-2.
  1348.     # I hope there are not other 4.0 versions for this machine
  1349.     # which really need usg5-4 instead.
  1350.     machine=delta88k opsys=usg5-4-2
  1351.   ;;
  1352.   m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
  1353.     machine=delta88k opsys=usg5-3
  1354.   ;;
  1355.  
  1356.   ## Dual machines
  1357.   m68*-dual-sysv* )
  1358.     machine=dual opsys=usg5-2
  1359.   ;;
  1360.   m68*-dual-uniplus* )
  1361.     machine=dual opsys=unipl5-2
  1362.   ;;
  1363.  
  1364.   ## Elxsi 6400
  1365.   elxsi-elxsi-sysv* )
  1366.     machine=elxsi opsys=usg5-2
  1367.   ;;
  1368.  
  1369.   ## Encore machines
  1370.   ns16k-encore-bsd* )
  1371.     machine=ns16000 opsys=umax
  1372.   ;;
  1373.  
  1374.   ## The GEC 93 - apparently, this port isn't really finished yet.
  1375.  
  1376.   ## Gould Power Node and NP1
  1377.   pn-gould-bsd4.2* )
  1378.     machine=gould opsys=bsd4-2
  1379.   ;;
  1380.   pn-gould-bsd4.3* )
  1381.     machine=gould opsys=bsd4-3
  1382.   ;;
  1383.   np1-gould-bsd* )
  1384.     machine=gould-np1 opsys=bsd4-3
  1385.   ;;
  1386.  
  1387.   ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
  1388.   ## as far as XEmacs is concerned).
  1389.   m88k-harris-cxux* )
  1390.     # Build needs to be different on 7.0 and later releases
  1391.     case "`uname -r`" in
  1392.        [56].[0-9] ) machine=nh4000 opsys=cxux ;;
  1393.        [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
  1394.     esac
  1395.   ;;
  1396.   ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
  1397.   m68k-harris-cxux* )
  1398.     machine=nh3000 opsys=cxux
  1399.   ;;
  1400.  
  1401.   ## Honeywell XPS100
  1402.   xps*-honeywell-sysv* )
  1403.     machine=xps100 opsys=usg5-2
  1404.   ;;
  1405.  
  1406.   ## HP 9000 series 200 or 300
  1407.   m68*-hp-bsd* )
  1408.     machine=hp9000s300 opsys=bsd4-3
  1409.   ;;
  1410.   ## HP/UX 7, 8, 9, and 10 are supported on these machines.
  1411.   m68*-hp-hpux* )
  1412.     NON_GNU_CPP="cc -Aa -E"
  1413.     NON_GNU_CC="cc -Aa"
  1414.     case "`uname -r`" in
  1415.       ## Someone's system reports A.B8.05 for this.
  1416.       ## I wonder what other possibilities there are.
  1417.       *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
  1418.       *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
  1419.       *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
  1420.       *.10.* ) machine=hp9000s300 opsys=hpux10 ;;
  1421.       *) machine=hp9000s300 opsys=hpux ;;
  1422.     esac
  1423.   ;;
  1424.  
  1425.   ## HP 9000 series 700 and 800, running HP/UX
  1426.   hppa*-hp-hpux7* )
  1427.     machine=hp800 opsys=hpux NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1428.   ;;
  1429.   hppa*-hp-hpux8shr* )
  1430.     machine=hp800 opsys=hpux8shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1431.   ;;
  1432.   hppa*-hp-hpux8* )
  1433.     machine=hp800 opsys=hpux8 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1434.   ;;
  1435.   hppa*-hp-hpux9shr* )
  1436.     machine=hp800 opsys=hpux9shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1437.   ;;
  1438.   hppa*-hp-hpux9* )
  1439.     machine=hp800 opsys=hpux9 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1440.   ;;
  1441.   hppa*-hp-hpux10shr* )
  1442.     machine=hp800 opsys=hpux10shr NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1443.   ;;
  1444.   hppa*-hp-hpux10* )
  1445.     machine=hp800 opsys=hpux10 NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1446.   ;;
  1447.  
  1448.   ## HP 9000 series 700 and 800, running HP/UX
  1449.   hppa*-hp-hpux* )
  1450.     NON_GNU_CPP="cc -Aa -E" NON_GNU_CC="cc -Aa"
  1451.     ## Cross-compilation?  Nah!
  1452.     case "`uname -r`" in
  1453.       ## Someone's system reports A.B8.05 for this.
  1454.       ## I wonder what other possibilities there are.
  1455.       *.B8.* ) machine=hp800 opsys=hpux8 ;;
  1456.       *.08.* ) machine=hp800 opsys=hpux8 ;;
  1457.       *.09.* ) machine=hp800 opsys=hpux9 ;;
  1458.       *.10.* ) machine=hp800 opsys=hpux10 ;;
  1459.       *) machine=hp800 opsys=hpux ;;
  1460.     esac
  1461.   ;;
  1462.  
  1463.   ## Orion machines
  1464.   orion-orion-bsd* )
  1465.     machine=orion opsys=bsd4-2
  1466.   ;;
  1467.   clipper-orion-bsd* )
  1468.     machine=orion105 opsys=bsd4-2
  1469.   ;;
  1470.  
  1471.   ## IBM machines
  1472.   i[345]86-ibm-aix1.1* )
  1473.     machine=ibmps2-aix opsys=usg5-2-2
  1474.   ;;
  1475.   i[345]86-ibm-aix1.[23]* | i[345]86-ibm-aix* )
  1476.     machine=ibmps2-aix opsys=usg5-3
  1477.   ;;
  1478.   i370-ibm-aix*)
  1479.     machine=ibm370aix opsys=usg5-3
  1480.   ;;
  1481.   rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
  1482.     machine=ibmrs6000 opsys=aix3-1
  1483.   ;;
  1484.   rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
  1485.     machine=ibmrs6000 opsys=aix3-2-5
  1486.   ;;
  1487.   rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1*  )
  1488.     machine=ibmrs6000 opsys=aix4-1
  1489.   ;;
  1490.   rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
  1491.     machine=ibmrs6000 opsys=aix4
  1492.   ;;
  1493.   rs6000-ibm-aix* | powerpc-ibm-aix* )
  1494.     machine=ibmrs6000 opsys=aix3-2
  1495.   ;;
  1496.   romp-ibm-bsd4.3* )
  1497.     machine=ibmrt opsys=bsd4-3
  1498.   ;;    
  1499.   romp-ibm-bsd4.2* )
  1500.     machine=ibmrt opsys=bsd4-2
  1501.   ;;
  1502.   romp-ibm-aos4.3* )
  1503.     machine=ibmrt opsys=bsd4-3
  1504.   ;;    
  1505.   romp-ibm-aos4.2* )
  1506.     machine=ibmrt opsys=bsd4-2
  1507.   ;;
  1508.   romp-ibm-aos* )
  1509.     machine=ibmrt opsys=bsd4-3
  1510.   ;;
  1511.   romp-ibm-bsd* )
  1512.     machine=ibmrt opsys=bsd4-3
  1513.   ;;
  1514.   romp-ibm-aix* )
  1515.     machine=ibmrt-aix opsys=usg5-2-2
  1516.   ;;
  1517.   romp-ibm-mach* )
  1518.     machine=ibmrt opsys=mach
  1519.   ;;
  1520.  
  1521.   ## Integrated Solutions `Optimum V'
  1522.   m68*-isi-bsd4.2* )
  1523.     machine=isi-ov opsys=bsd4-2
  1524.   ;;
  1525.   m68*-isi-bsd4.3* )
  1526.     machine=isi-ov opsys=bsd4-3
  1527.   ;;
  1528.  
  1529.   ## Intel 386 machines where we do care about the manufacturer
  1530.   i[345]86-intsys-sysv* )
  1531.     machine=is386 opsys=usg5-2-2
  1532.   ;;
  1533.  
  1534.   ## Prime EXL
  1535.   i[345]86-prime-sysv* )
  1536.     machine=i386 opsys=usg5-3
  1537.   ;;
  1538.  
  1539.   ## Sequent Symmetry running Dynix
  1540.   i[345]86-sequent-bsd* )
  1541.     machine=symmetry opsys=bsd4-3
  1542.   ;;
  1543.  
  1544.   ## Sequent Symmetry running DYNIX/ptx
  1545.   ## Use the old cpp rather than the newer ANSI one.
  1546.   i[345]86-sequent-ptx* )
  1547.     machine=sequent-ptx opsys=ptx
  1548.     NON_GNU_CPP="/lib/cpp"
  1549.   ;;
  1550.  
  1551.   ## Unspecified sysv on an ncr machine defaults to svr4.2.
  1552.   ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
  1553.   i[345]86-ncr-sysv* )
  1554.     machine=ncr386 opsys=usg5-4-2
  1555.   ;;
  1556.  
  1557.   ## Intel Paragon OSF/1
  1558.   i860-intel-osf1* )
  1559.     machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
  1560.   ;;
  1561.  
  1562.   ## Intel 860
  1563.   i860-*-sysv4* )
  1564.     machine=i860 opsys=usg5-4
  1565.     NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
  1566.     NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
  1567.   ;;
  1568.  
  1569.   ## Masscomp machines
  1570.   m68*-masscomp-rtu* )
  1571.     machine=masscomp opsys=rtu
  1572.   ;;
  1573.  
  1574.   ## Megatest machines
  1575.   m68*-megatest-bsd* )
  1576.     machine=mega68 opsys=bsd4-2
  1577.   ;;
  1578.  
  1579.   ## Workstations sold by MIPS
  1580.   ## This is not necessarily all workstations using the MIPS processor -
  1581.   ## Irises are produced by SGI, and DECstations by DEC.
  1582.  
  1583.   ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
  1584.   ## and usg5-2-2 and bsd4-3 as possible OS files.  The only guidance
  1585.   ## it gives for choosing between the alternatives seems to be "Use
  1586.   ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
  1587.   ## the BSD world."  I'll assume that these are instructions for
  1588.   ## handling two odd situations, and that every other situation
  1589.   ## should use mips.h and usg5-2-2, they being listed first.
  1590.   mips-mips-usg* )
  1591.     machine=mips4
  1592.     ## Fall through to the general code at the bottom to decide on the OS.
  1593.   ;;
  1594.   mips-mips-riscos4* )
  1595.     machine=mips4 opsys=bsd4-3
  1596.     NON_GNU_CC="cc -systype bsd43"
  1597.     NON_GNU_CPP="cc -systype bsd43 -E"
  1598.   ;;
  1599.   mips-mips-bsd* )
  1600.     machine=mips opsys=bsd4-3
  1601.   ;;
  1602.   mips-mips-* )
  1603.     machine=mips opsys=usg5-2-2
  1604.   ;;
  1605.  
  1606.   ## NeXT
  1607.   *-next-* )
  1608.     machine=next opsys=mach2
  1609.   ;;
  1610.  
  1611.   ## The complete machine from National Semiconductor
  1612.   ns32k-ns-genix* )
  1613.     machine=ns32000 opsys=usg5-2
  1614.   ;;
  1615.  
  1616.   ## NCR machines
  1617.   m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
  1618.     machine=tower32 opsys=usg5-2-2
  1619.   ;;
  1620.   m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
  1621.     machine=tower32v3 opsys=usg5-3
  1622.   ;;
  1623.  
  1624.   ## Nixdorf Targon 31
  1625.   m68*-nixdorf-sysv* )
  1626.     machine=targon31 opsys=usg5-2-2
  1627.   ;;
  1628.  
  1629.   ## Nu (TI or LMI)
  1630.   m68*-nu-sysv* )
  1631.     machine=nu opsys=usg5-2
  1632.   ;;
  1633.  
  1634.   ## Plexus
  1635.   m68*-plexus-sysv* )
  1636.     machine=plexus opsys=usg5-2
  1637.   ;;
  1638.  
  1639.   ## Pyramid machines
  1640.   ## I don't really have any idea what sort of processor the Pyramid has,
  1641.   ## so I'm assuming it is its own architecture.
  1642.   pyramid-pyramid-bsd* )
  1643.     machine=pyramid opsys=bsd4-2
  1644.   ;;
  1645.  
  1646.   ## Sequent Balance
  1647.   ns32k-sequent-bsd4.2* )
  1648.     machine=sequent opsys=bsd4-2
  1649.   ;;
  1650.   ns32k-sequent-bsd4.3* )
  1651.     machine=sequent opsys=bsd4-3
  1652.   ;;
  1653.  
  1654.   ## Siemens Nixdorf
  1655.   mips-siemens-sysv* )
  1656.     machine=mips-siemens opsys=usg5-4
  1657.     NON_GNU_CC=/usr/ccs/bin/cc
  1658.     NON_GNU_CPP=/usr/ccs/lib/cpp
  1659.   ;;
  1660.  
  1661.   ## Silicon Graphics machines
  1662.   ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
  1663.   m68*-sgi-iris3.5* )
  1664.     machine=irist opsys=iris3-5
  1665.   ;;
  1666.   m68*-sgi-iris3.6* | m68*-sgi-iris*)
  1667.     machine=irist opsys=iris3-6
  1668.   ;;
  1669.   ## Iris 4D
  1670.   mips-sgi-irix3.* )
  1671.     machine=iris4d opsys=irix3-3
  1672.   ;;
  1673.   mips-sgi-irix4.* )
  1674.     machine=iris4d opsys=irix4-0
  1675.   ;;
  1676.   mips-sgi-irix6* )
  1677.     machine=iris4d opsys=irix6-0
  1678.   ;;
  1679.   mips-sgi-irix5.[3-9]* )
  1680.     machine=iris4d opsys=irix5-3
  1681.   ;;
  1682.   mips-sgi-irix5.2* )
  1683.     machine=iris4d opsys=irix5-2
  1684.   ;;
  1685.   mips-sgi-irix5.1* )
  1686.     machine=iris4d opsys=irix5-1
  1687.   ;;
  1688.   mips-sgi-irix5.* | mips-sgi-irix* )
  1689.     machine=iris4d opsys=irix5-0
  1690.   ;;
  1691.  
  1692.   ## SONY machines
  1693.   m68*-sony-bsd4.2* )
  1694.     machine=news opsys=bsd4-2
  1695.   ;;
  1696.   m68*-sony-bsd4.3* )
  1697.     machine=news opsys=bsd4-3
  1698.   ;;
  1699.   m68*-sony-newsos3* | m68*-sony-news3*)
  1700.     machine=news opsys=bsd4-3
  1701.   ;;
  1702.   mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
  1703.     machine=news-risc opsys=bsd4-3
  1704.   ;;
  1705.   mips-sony-news* )
  1706.     machine=news-risc opsys=newsos5
  1707.   ;;
  1708.  
  1709.   ## Stride
  1710.   m68*-stride-sysv* )
  1711.     machine=stride opsys=usg5-2
  1712.   ;;
  1713.  
  1714.   ## Suns
  1715.   *-sun-sunos* | *-sun-bsd* | *-sun-solaris* | i[345]86-*-solaris2* | i[345]86-*-sunos5* | *-sun-mach* )
  1716.     case "${canonical}" in
  1717.       m68*-sunos1* )    machine=sun1 ;;
  1718.       m68*-sunos2* )    machine=sun2 ;;
  1719.       m68* )        machine=sun3 ;;
  1720.       i[345]86*-sun-sunos[34]* )    machine=sun386 ;;
  1721.       i[345]86-*-* )    machine=intel386 ;;
  1722.       sparc* )        machine=sparc ;;
  1723.       * )        unported=yes ;;
  1724.     esac
  1725.     case "${canonical}" in
  1726.       ## The Sun386 didn't get past 4.0.
  1727.       i[345]86-*-sunos4      ) opsys=sunos4-0 ;;
  1728.       *-sunos4.0*      ) opsys=sunos4-0 ;;
  1729.       *-sunos4.1.2*       ) opsys=sunos4-1-2
  1730.         NON_GCC_TEST_OPTIONS=-Bstatic
  1731.         GCC_TEST_OPTIONS=-static
  1732.         ;;
  1733.       *-sunos4.1.[3-9]*      ) opsys=sunos4-1-3
  1734.         NON_GNU_CPP=/usr/lib/cpp
  1735.         ;;
  1736.       *-sunos4shr*      ) opsys=sunos4-0shr ;;
  1737.       *-sunos4-0shr*      ) opsys=sunos4-0shr ;;
  1738.       *-sunos4-1shr*      ) opsys=sunos4-1shr
  1739.         NON_GCC_TEST_OPTIONS=-Bstatic
  1740.         GCC_TEST_OPTIONS=-static
  1741.         ;;
  1742.       *-sunos4-1-2shr*      ) opsys=sunos4-1-2shr
  1743.         NON_GCC_TEST_OPTIONS=-Bstatic
  1744.         GCC_TEST_OPTIONS=-static
  1745.         ;;
  1746.       *-sunos4-1-[3-9]shr*      ) opsys=sunos4-1-3shr
  1747.         NON_GNU_CPP=/usr/lib/cpp
  1748.         ;;
  1749.       *-sunos4* | *-sunos ) opsys=sunos4-1
  1750.         NON_GCC_TEST_OPTIONS=-Bstatic
  1751.         GCC_TEST_OPTIONS=-static
  1752.         ;;
  1753.       *-sunos5.3* | *-solaris2.3* )
  1754.         opsys=sol2-3
  1755.         need_dynodump=yes
  1756.         NON_GNU_CPP=/usr/ccs/lib/cpp
  1757.         ;;
  1758.       *-sunos5.4* | *-solaris2.4* )
  1759.         opsys=sol2-4
  1760.         need_dynodump=yes
  1761.         NON_GNU_CPP=/usr/ccs/lib/cpp
  1762.         ;;
  1763.       *-sunos5.[5-9]* | *-solaris2.[5-9]* )
  1764.         opsys=sol2-5
  1765.         need_dynodump=yes
  1766.         NON_GNU_CPP=/usr/ccs/lib/cpp
  1767.         ;;
  1768.       *-sunos5* | *-solaris* )
  1769.         opsys=sol2
  1770.         need_dynodump=yes
  1771.         NON_GNU_CPP=/usr/ccs/lib/cpp
  1772.         ;;
  1773.       *-mach*          ) opsys=mach ;;
  1774.       *              ) opsys=bsd4-2 ;;
  1775.     esac
  1776.   ;;
  1777.  
  1778.   ## Tadpole 68k
  1779.   m68*-tadpole-sysv* )
  1780.     machine=tad68k opsys=usg5-3
  1781.   ;;
  1782.  
  1783.   ## Tahoe machines
  1784.   tahoe-tahoe-bsd4.2* )
  1785.     machine=tahoe opsys=bsd4-2
  1786.   ;;
  1787.   tahoe-tahoe-bsd4.3* )
  1788.     machine=tahoe opsys=bsd4-3
  1789.   ;;
  1790.  
  1791.   ## Tandem Integrity S2
  1792.   mips-tandem-sysv* )
  1793.     machine=tandem-s2 opsys=usg5-3
  1794.   ;;
  1795.  
  1796.   ## Tektronix XD88
  1797.   m88k-tektronix-sysv3* )
  1798.   machine=tekxd88 opsys=usg5-3
  1799.   ;;
  1800.  
  1801.   ## Tektronix 16000 box (6130?)
  1802.   ns16k-tektronix-bsd* )
  1803.     machine=ns16000 opsys=bsd4-2
  1804.   ;;
  1805.   ## Tektronix 4300
  1806.   ## src/m/tek4300.h hints that this is a m68k machine.
  1807.   m68*-tektronix-bsd* )
  1808.     machine=tek4300 opsys=bsd4-3
  1809.   ;;
  1810.  
  1811.   ## Titan P2 or P3
  1812.   ## We seem to have lost the machine-description file titan.h!
  1813.   titan-titan-sysv* )
  1814.     machine=titan opsys=usg5-3
  1815.   ;;
  1816.   
  1817.   ## Ustation E30 (SS5E)
  1818.   m68*-unisys-uniplus* )
  1819.     machine=ustation opsystem=unipl5-2
  1820.   ;;
  1821.  
  1822.   ## Vaxen.
  1823.   vax-dec-* )
  1824.     machine=vax
  1825.     case "${canonical}" in
  1826.       *-bsd4.1* )                     opsys=bsd4-1 ;;
  1827.       *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* )    opsys=bsd4-2 ;;
  1828.       *-bsd4.3* | *-ultrix* )                 opsys=bsd4-3 ;;
  1829.       *-sysv[01]* | *-sysvr[01]* )             opsys=usg5-0 ;;
  1830.       *-sysv2* | *-sysvr2* )                opsys=usg5-2 ;;
  1831.       *-vms* )                         opsys=vms ;;
  1832.       *-mach* )                        opsys=mach ;;
  1833.       * )                         unported=yes
  1834.     esac
  1835.   ;;
  1836.  
  1837.   ## Whitechapel MG1
  1838.   ns16k-whitechapel-* )
  1839.     machine=mg1
  1840.     ## We don't know what sort of OS runs on these; we'll let the
  1841.     ## operating system guessing code below try.
  1842.   ;;
  1843.  
  1844.   ## Wicat
  1845.   m68*-wicat-sysv* )
  1846.     machine=wicat opsys=usg5-2
  1847.   ;;
  1848.  
  1849.   ## Intel 386 machines where we don't care about the manufacturer
  1850.   i[345]86-*-* )
  1851.     machine=intel386
  1852.     case "${canonical}" in
  1853.       *-isc1.* | *-isc2.[01]* )    opsys=386-ix ;;
  1854.       *-isc2.2* )        opsys=isc2-2 ;;
  1855.       *-isc4.0* )        opsys=isc4-0 ;;
  1856.       *-isc* )            opsys=isc3-0 ;;
  1857.       *-esix5* )        opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
  1858.       *-esix* )            opsys=esix ;;
  1859.       *-mach* )            opsys=mach ;;
  1860.       *-xenix* )        opsys=xenix ;;
  1861.       *-linux*1.1.5[6-9]* | *-linux*1.1.[6-9]* | *-linux*1.[2-9]* )
  1862.                 opsys=linux1-1-56 ;;
  1863.       *-linux* )        opsys=linux-old ;;
  1864.       *-sco3.2v4* )        opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
  1865.       *-bsd386* | *-bsdi1* )    opsys=bsd386 ;;
  1866.       *-bsdi2* )        opsys=bsdos2 ;;
  1867.       *-sco3.2v5* )        opsys=sco5 ; NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE"  ;;
  1868.       *-386bsd* )            opsys=386bsd ;;
  1869.       *-freebsd* )        opsys=freebsd ;;
  1870.       *-nextstep* )        opsys=mach2 ;;
  1871.       ## Otherwise, we'll fall through to the generic opsys code at the bottom.
  1872.     esac
  1873.   ;;
  1874.  
  1875.   * )
  1876.     unported=yes
  1877.   ;;
  1878. esac
  1879.  
  1880. ### If the code above didn't choose an operating system, just choose
  1881. ### an operating system based on the configuration name.  You really
  1882. ### only want to use this when you have no idea what the right
  1883. ### operating system is; if you know what operating systems a machine
  1884. ### runs, it's cleaner to make it explicit in the case statement
  1885. ### above.
  1886. if [ x"${opsys}" = x ]; then
  1887.   case "${canonical}" in
  1888.     *-gnu* )                opsys=gnu ;;
  1889.     *-bsd4.[01] )            opsys=bsd4-1 ;;
  1890.     *-bsd4.2 )                opsys=bsd4-2 ;;
  1891.     *-bsd4.3 )                opsys=bsd4-3 ;;
  1892.     *-sysv0 | *-sysvr0 )        opsys=usg5-0 ;;
  1893.     *-sysv2 | *-sysvr2 )        opsys=usg5-2 ;;
  1894.     *-sysv2.2 | *-sysvr2.2 )        opsys=usg5-2-2 ;;
  1895.     *-sysv3 | *-sysvr3 )        opsys=usg5-3 ;;
  1896.     *-sysv4 | *-sysvr4 )        opsys=usg5-4 ;;
  1897.     *-sysv4.1 | *-sysvr4.1 )
  1898.       NON_GNU_CPP=/usr/lib/cpp
  1899.       opsys=usg5-4 ;;
  1900.     *-sysv4.2 | *-sysvr4.2 )
  1901.     if [ x$NON_GNU_CPP = x ]; then
  1902.       NON_GNU_CPP=/usr/ccs/lib/cpp
  1903.     fi
  1904.     opsys=usg5-4-2 ;;
  1905.     * )
  1906.       unported=yes
  1907.     ;;
  1908.   esac
  1909. fi
  1910.  
  1911. if [ "${unported}" = "yes" ]; then
  1912.   (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
  1913.    echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
  1914.   ) >&2
  1915.   exit 1
  1916. fi
  1917.  
  1918. if [ "${dynamic}" = "yes" ]; then
  1919.   case "${opsys}" in
  1920.     hpux8        ) opsys=hpux8shr ;;
  1921.     hpux9        ) opsys=hpux9shr ;;
  1922.     hpux10        ) opsys=hpux10shr ;;
  1923.     sunos4-0        ) opsys=sunos4-0shr ;;
  1924.     sunos4-1        ) opsys=sunos4-1shr ;;
  1925.     sunos4-1-2    ) opsys=sunos4-1-2shr ;;
  1926.     sunos4-1-3    ) opsys=sunos4-1-3shr ;;
  1927.   esac
  1928. elif [ "${dynamic}" = "no" ]; then
  1929.   case "${opsys}" in
  1930.     sol2    )    opsys=sol2-static ;;
  1931.     sol2-3    )    opsys=sol2-3-static ;;
  1932.     sol2-4    )    opsys=sol2-4-static ;;
  1933.     decosf1-3    )    opsys=decosf1-3-static ;;
  1934.     decosf3-1    )    opsys=decosf3-1-static ;;
  1935.   esac
  1936. fi
  1937.  
  1938. dynodump_arch=''
  1939. if [ "${need_dynodump}" = "yes" ]; then
  1940.   case "${canonical}" in
  1941.     sparc-*-* )        dynodump_arch=sparc ;;
  1942.     powerpc-*-* )    dynodump_arch=powerpc ;;
  1943.     i[345]86-*-* )    dynodump_arch=i386 ;;
  1944.   esac
  1945. fi
  1946.  
  1947. machfile="m/${machine}.h"
  1948. opsysfile="s/${opsys}.h"
  1949.  
  1950.  
  1951. ac_ext=c
  1952. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1953. ac_cpp='${CPP}'
  1954. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  1955.  
  1956. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1957. trap 'rm -fr confdefs* $ac_clean_files' 0
  1958.  
  1959. # Save the original args if we used an alternate arg parser.
  1960. ac_configure_temp="${configure_args-$*}"
  1961. # Strip out --no-create and --norecursion so they don't pile up.
  1962. configure_args=
  1963. for ac_arg in $ac_configure_temp; do
  1964.   case "$ac_arg" in
  1965.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1966.   | --no-cr | --no-c) ;;
  1967.   -norecursion | --norecursion | --norecursio | --norecursi \
  1968.   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  1969.   *) configure_args="$configure_args $ac_arg" ;;
  1970.   esac
  1971. done
  1972.  
  1973. # NLS nuisances.
  1974. # These must not be set unconditionally because not all systems understand
  1975. # e.g. LANG=C (notably SCO).
  1976. if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  1977. if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  1978.  
  1979. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1980. rm -rf conftest* confdefs.h
  1981. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1982. echo > confdefs.h
  1983.  
  1984. # A filename unique to this package, relative to the directory that
  1985. # configure is in, which we can look for to find out if srcdir is correct.
  1986. ac_unique_file=lisp
  1987.  
  1988. # Find the source files, if location was not specified.
  1989. if test -z "$srcdir"; then
  1990.   ac_srcdir_defaulted=yes
  1991.   # Try the directory containing this script, then `..'.
  1992.   ac_prog=$0
  1993.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  1994.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  1995.   srcdir=$ac_confdir
  1996.   if test ! -r $srcdir/$ac_unique_file; then
  1997.     srcdir=..
  1998.   fi
  1999. fi
  2000. if test ! -r $srcdir/$ac_unique_file; then
  2001.   if test x$ac_srcdir_defaulted = xyes; then
  2002.     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  2003.   else
  2004.     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  2005.   fi
  2006. fi
  2007. ac_ext=c
  2008. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2009. ac_cpp='${CPP}'
  2010. ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016. #### Choose a compiler.
  2017. if [ "x$CC" = x ] ; then
  2018.   cc_specified=1
  2019. fi
  2020.  
  2021. if [ "${with_gcc}" = "yes" ] ; then
  2022.   CC="${compiler-gcc}"
  2023.   GCC=1
  2024. elif [ "${with_lcc}" = "yes" ] ; then
  2025.   CC="${compiler-lcc}"
  2026.   dash_r_space=' '        # this bullshit is here because lcc for solaris
  2027.                 # will not accept -Rargument.
  2028.                 # It needs -R argument instead.  Yuck yuck yuck.
  2029.   if [ "x$NON_GNU_CPP" = x ] ; then
  2030.     NON_GNU_CPP="yes"        # this is handled specially below...
  2031.   fi
  2032. elif [ "${compiler}" != "" ] ; then
  2033.   CC="${compiler}"
  2034. elif [ "${with_gcc}" = "no" ] ; then
  2035.   CC="cc"
  2036. elif [ "${with_lcc}" = "no" ] ; then
  2037.   if [ "x$CC" = x ]
  2038.   then CC=cc;
  2039.   else true;
  2040.   fi
  2041. else
  2042.   case "${canonical}" in
  2043.     * )
  2044.        if test -z "$CC"; then
  2045.   # Extract the first word of `gcc', so it can be a program name with args.
  2046.   set ac_dummy gcc; ac_word=$2
  2047.   test -n "$silent" || echo "checking for $ac_word"
  2048.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2049.   for ac_dir in $PATH; do
  2050.     test -z "$ac_dir" && ac_dir=.
  2051.     if test -f $ac_dir/$ac_word; then
  2052.       CC="gcc"
  2053.       break
  2054.     fi
  2055.   done
  2056.   IFS="$ac_save_ifs"
  2057. fi
  2058. test -z "$CC" && CC="cc"
  2059. test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  2060.  
  2061. # Find out if we are using GNU C, under whatever name.
  2062. cat > conftest.c <<EOF
  2063. #ifdef __GNUC__
  2064.   yes
  2065. #endif
  2066. EOF
  2067. ${CC-cc} -E conftest.c > conftest.out 2>&1
  2068. if egrep yes conftest.out >/dev/null 2>&1; then
  2069.   GCC=1 # For later tests.
  2070. fi
  2071. rm -f conftest*
  2072.  
  2073.       if [ "${CC}" = "gcc" ] ; then
  2074.         with_gcc="yes"
  2075.         GCC=1
  2076.       fi
  2077.     ;;
  2078.   esac
  2079. fi
  2080.  
  2081. # On Suns, sometimes $CPP names a directory.
  2082. if [ -n "$CPP" ] && [ -d "$CPP" ] ; then
  2083.   CPP=
  2084. fi
  2085.  
  2086. #### Some systems specify a CPP to use unless we are using GCC.
  2087. #### Now that we know whether we are using GCC, we can decide whether
  2088. #### to use that one.
  2089. if [ "x$NON_GNU_CPP" = x ] || [ x$GCC = x1 ]
  2090. then true
  2091. else
  2092.   if [ "x$CPP" = x ]; then
  2093.     if [ "${with_lcc}" = "yes" ] && [ "${NON_GNU_CPP}" = "yes" ] ; then
  2094.       CPP='gcc -E -traditional' # cross fingers and hope it's there....
  2095.     else
  2096.       CPP="$NON_GNU_CPP"
  2097.     fi
  2098.   fi
  2099. fi
  2100.  
  2101. #### Some systems specify a CC to use unless we are using GCC.
  2102. #### Now that we know whether we are using GCC, we can decide whether
  2103. #### to use that one.
  2104. if [ "x$NON_GNU_CC" = x ] || [ x$GCC = x1 ] || [ x$cc_specified = x1 ]
  2105. then true
  2106. else
  2107.   CC="$NON_GNU_CC"
  2108. fi
  2109.  
  2110. ## Huh?  I commented out the following because it always enabled
  2111. ## the "test" options, whatever the hell those are supposed to be
  2112. ## for, and the result is that SunOS builds were always static.
  2113.  
  2114. #if [ x$GCC = x1 ] && [ "x$GCC_TEST_OPTIONS" != x ]
  2115. #then
  2116. #  CC="$CC $GCC_TEST_OPTIONS"
  2117. #fi  
  2118. #
  2119. #if [ x$GCC = x ] && [ "x$NON_GCC_TEST_OPTIONS" != x ]
  2120. #then
  2121. #  CC="$CC $NON_GCC_TEST_OPTIONS"
  2122. #fi  
  2123.  
  2124. #### Some other nice autoconf tests.  If you add a test here which
  2125. #### should make an entry in src/config.h, don't forget to add an
  2126. #### #undef clause to src/config.h.in for autoconf to modify.
  2127.  
  2128. test -n "$silent" || echo "checking how to run the C preprocessor"
  2129. if test -z "$CPP"; then
  2130.   # This must be in double quotes, not single quotes, because CPP may get
  2131.   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  2132.   # make.  It must be expanded now.
  2133.   CPP="${CC-cc} -E"
  2134.   cat > conftest.${ac_ext} <<EOF
  2135. #include "confdefs.h"
  2136. #include <stdio.h>
  2137. Syntax Error
  2138. EOF
  2139. # Some shells (Coherent) do redirections in the wrong order, so need
  2140. # the parens.
  2141. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2142. if test -z "$ac_err"; then
  2143.   :
  2144. else
  2145.   rm -rf conftest*
  2146.   CPP="${CC-cc} -E -traditional-cpp"
  2147.   cat > conftest.${ac_ext} <<EOF
  2148. #include "confdefs.h"
  2149. #include <stdio.h>
  2150. Syntax Error
  2151. EOF
  2152. # Some shells (Coherent) do redirections in the wrong order, so need
  2153. # the parens.
  2154. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2155. if test -z "$ac_err"; then
  2156.   :
  2157. else
  2158.   rm -rf conftest*
  2159.   CPP=/lib/cpp
  2160. fi
  2161. rm -f conftest*
  2162. fi
  2163. rm -f conftest*
  2164. fi
  2165. test -n "$verbose" && echo "    setting CPP to $CPP"
  2166.  
  2167.  
  2168. case "${canonical}" in
  2169.   *-sun-sunos* )
  2170.     if [ "${CPP}" = "acc -E" ] ; then
  2171.       CPP="acc -E -Xs"
  2172.     fi
  2173.   ;;
  2174. esac
  2175.  
  2176. if test -z "$RANLIB"; then
  2177.   # Extract the first word of `ranlib', so it can be a program name with args.
  2178.   set ac_dummy ranlib; ac_word=$2
  2179.   test -n "$silent" || echo "checking for $ac_word"
  2180.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2181.   for ac_dir in $PATH; do
  2182.     test -z "$ac_dir" && ac_dir=.
  2183.     if test -f $ac_dir/$ac_word; then
  2184.       RANLIB="ranlib"
  2185.       break
  2186.     fi
  2187.   done
  2188.   IFS="$ac_save_ifs"
  2189. fi
  2190. test -z "$RANLIB" && RANLIB=":"
  2191. test -n "$RANLIB" && test -n "$verbose" && echo "    setting RANLIB to $RANLIB"
  2192.  
  2193. # Make sure to not get the incompatible SysV /etc/install and
  2194. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  2195. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  2196. # or the AFS install, which mishandles nonexistent args, or
  2197. # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  2198. # `staff', or /sbin/install on IRIX which has incompatible command-line
  2199. # syntax.  Sigh.
  2200. #
  2201. #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  2202. #     anyway.
  2203. # This turns out not to be true, so the mere pathname isn't an indication
  2204. # of whether the program works.  What we really need is a set of tests for
  2205. # the install program to see if it actually works in all the required ways.
  2206. #
  2207. # Avoid using ./install, which might have been erroneously created
  2208. # by make from ./install.sh.
  2209. if test -z "${INSTALL}"; then
  2210.   test -n "$silent" || echo "checking for a BSD compatible install"
  2211.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2212.   for ac_dir in $PATH; do
  2213.     case "$ac_dir" in
  2214.     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  2215.     *)
  2216.       # OSF1 and SCO ODT 3.0 have their own names for install.
  2217.       for ac_prog in installbsd scoinst install; do
  2218.         if test -f $ac_dir/$ac_prog; then
  2219.       if test $ac_prog = install &&
  2220.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  2221.         # AIX install.  It has an incompatible calling convention.
  2222.         # OSF/1 installbsd also uses dspmsg, but is usable.
  2223.         :
  2224.       else
  2225.         INSTALL="$ac_dir/$ac_prog -c"
  2226.         break 2
  2227.       fi
  2228.     fi
  2229.       done
  2230.       ;;
  2231.     esac
  2232.   done
  2233.   IFS="$ac_save_ifs"
  2234. fi
  2235.  
  2236. if test -z "$INSTALL"; then
  2237.   # As a last resort, use the slow shell script.
  2238.   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  2239.     if test -f $ac_dir/install.sh; then
  2240.       INSTALL="$ac_dir/install.sh -c"; break
  2241.     fi
  2242.   done
  2243. fi
  2244. if test -z "$INSTALL"; then
  2245.   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  2246. fi
  2247. test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  2248.  
  2249. # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  2250. # It thinks the first close brace ends the variable substitution.
  2251. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2252. test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  2253.  
  2254. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2255. test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  2256.  
  2257. for ac_prog in 'bison -y' byacc
  2258. do
  2259. if test -z "$YACC"; then
  2260.   # Extract the first word of `$ac_prog', so it can be a program name with args.
  2261.   set ac_dummy $ac_prog; ac_word=$2
  2262.   test -n "$silent" || echo "checking for $ac_word"
  2263.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2264.   for ac_dir in $PATH; do
  2265.     test -z "$ac_dir" && ac_dir=.
  2266.     if test -f $ac_dir/$ac_word; then
  2267.       YACC="$ac_prog"
  2268.       break
  2269.     fi
  2270.   done
  2271.   IFS="$ac_save_ifs"
  2272. fi
  2273.  
  2274. test -n "$YACC" && test -n "$verbose" && echo "    setting YACC to $YACC"
  2275.  
  2276. test -n "$YACC" && break
  2277. done
  2278. test -n "$YACC" || YACC="yacc"
  2279.  
  2280.  
  2281.  
  2282. for ac_hdr in mach/mach.h sys/timeb.h sys/time.h unistd.h utime.h sys/wait.h
  2283. do
  2284. ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  2285. test -n "$silent" || echo "checking for ${ac_hdr}"
  2286. cat > conftest.${ac_ext} <<EOF
  2287. #include "confdefs.h"
  2288. #include <${ac_hdr}>
  2289. EOF
  2290. # Some shells (Coherent) do redirections in the wrong order, so need
  2291. # the parens.
  2292. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2293. if test -z "$ac_err"; then
  2294.   rm -rf conftest*
  2295.   
  2296. {
  2297. test -n "$verbose" && \
  2298. echo "    defining ${ac_tr_hdr}"
  2299. echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  2300. DEFS="$DEFS -D${ac_tr_hdr}=1"
  2301. ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  2302. \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  2303. \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  2304. "
  2305. }
  2306.  
  2307.  
  2308. fi
  2309. rm -f conftest*
  2310. done
  2311.  
  2312. test -n "$silent" || echo "checking for ANSI C header files"
  2313. cat > conftest.${ac_ext} <<EOF
  2314. #include "confdefs.h"
  2315. #include <stdlib.h>
  2316. #include <stdarg.h>
  2317. #include <string.h>
  2318. #include <float.h>
  2319. EOF
  2320. # Some shells (Coherent) do redirections in the wrong order, so need
  2321. # the parens.
  2322. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2323. if test -z "$ac_err"; then
  2324.   rm -rf conftest*
  2325.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2326. echo '#include "confdefs.h"
  2327. #include <string.h>' > conftest.${ac_ext}
  2328. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2329. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  2330.   rm -rf conftest*
  2331.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2332. cat > conftest.${ac_ext} <<EOF
  2333. #include "confdefs.h"
  2334. #include <ctype.h>
  2335. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2336. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2337. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  2338. int main () { int i; for (i = 0; i < 256; i++)
  2339. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2340. exit (0); }
  2341.  
  2342. EOF
  2343. eval $ac_compile
  2344. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2345.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2346. echo '#include "confdefs.h"
  2347. #include <stdlib.h>' > conftest.${ac_ext}
  2348. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  2349. if egrep "free" conftest.out >/dev/null 2>&1; then
  2350.   rm -rf conftest*
  2351.   
  2352. {
  2353. test -n "$verbose" && \
  2354. echo "    defining STDC_HEADERS"
  2355. echo "#define" STDC_HEADERS "1" >> confdefs.h
  2356. DEFS="$DEFS -DSTDC_HEADERS=1"
  2357. ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  2358. \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  2359. \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  2360. "
  2361. }
  2362.  
  2363.  
  2364. fi
  2365. rm -f conftest*
  2366.  
  2367.  
  2368. fi
  2369. rm -fr conftest*
  2370.  
  2371. fi
  2372. rm -f conftest*
  2373.  
  2374.  
  2375. fi
  2376. rm -f conftest*
  2377.  
  2378. test -n "$silent" || echo "checking for whether time.h and sys/time.h may both be included"
  2379. cat > conftest.${ac_ext} <<EOF
  2380. #include "confdefs.h"
  2381. #include <sys/types.h>
  2382. #include <sys/time.h>
  2383. #include <time.h>
  2384. int main() { return 0; }
  2385. int t() { struct tm *tp;; return 0; }
  2386. EOF
  2387. if eval $ac_compile; then
  2388.   rm -rf conftest*
  2389.   
  2390. {
  2391. test -n "$verbose" && \
  2392. echo "    defining TIME_WITH_SYS_TIME"
  2393. echo "#define" TIME_WITH_SYS_TIME "1" >> confdefs.h
  2394. DEFS="$DEFS -DTIME_WITH_SYS_TIME=1"
  2395. ac_sed_defs="${ac_sed_defs}\${ac_dA}TIME_WITH_SYS_TIME\${ac_dB}TIME_WITH_SYS_TIME\${ac_dC}1\${ac_dD}
  2396. \${ac_uA}TIME_WITH_SYS_TIME\${ac_uB}TIME_WITH_SYS_TIME\${ac_uC}1\${ac_uD}
  2397. \${ac_eA}TIME_WITH_SYS_TIME\${ac_eB}TIME_WITH_SYS_TIME\${ac_eC}1\${ac_eD}
  2398. "
  2399. }
  2400.  
  2401.  
  2402. fi
  2403. rm -f conftest*
  2404.  
  2405. test -n "$silent" || echo "checking for sys_siglist declaration in signal.h or unistd.h"
  2406. cat > conftest.${ac_ext} <<EOF
  2407. #include "confdefs.h"
  2408. #include <signal.h>
  2409. /* NetBSD declares sys_siglist in <unistd.h>.  */
  2410. #ifdef HAVE_UNISTD_H
  2411. #include <unistd.h>
  2412. #endif
  2413. int main() { return 0; }
  2414. int t() { char *msg = *(sys_siglist + 1);; return 0; }
  2415. EOF
  2416. if eval $ac_compile; then
  2417.   rm -rf conftest*
  2418.   
  2419. {
  2420. test -n "$verbose" && \
  2421. echo "    defining SYS_SIGLIST_DECLARED"
  2422. echo "#define" SYS_SIGLIST_DECLARED "1" >> confdefs.h
  2423. DEFS="$DEFS -DSYS_SIGLIST_DECLARED=1"
  2424. ac_sed_defs="${ac_sed_defs}\${ac_dA}SYS_SIGLIST_DECLARED\${ac_dB}SYS_SIGLIST_DECLARED\${ac_dC}1\${ac_dD}
  2425. \${ac_uA}SYS_SIGLIST_DECLARED\${ac_uB}SYS_SIGLIST_DECLARED\${ac_uC}1\${ac_uD}
  2426. \${ac_eA}SYS_SIGLIST_DECLARED\${ac_eB}SYS_SIGLIST_DECLARED\${ac_eC}1\${ac_eD}
  2427. "
  2428. }
  2429.  
  2430.  
  2431. fi
  2432. rm -f conftest*
  2433.  
  2434.  
  2435. test -n "$silent" || echo "checking for struct utimbuf"
  2436. cat > conftest.${ac_ext} <<EOF
  2437. #include "confdefs.h"
  2438. #ifdef TIME_WITH_SYS_TIME
  2439. #include <sys/time.h>
  2440. #include <time.h>
  2441. #else
  2442. #ifdef HAVE_SYS_TIME_H
  2443. #include <sys/time.h>
  2444. #else
  2445. #include <time.h>
  2446. #endif
  2447. #endif
  2448. #ifdef HAVE_UTIME_H
  2449. #include <utime.h>
  2450. #endif
  2451. int main() { return 0; }
  2452. int t() { static struct utimbuf x; x.actime = x.modtime;; return 0; }
  2453. EOF
  2454. if eval $ac_compile; then
  2455.   rm -rf conftest*
  2456.   
  2457. {
  2458. test -n "$verbose" && \
  2459. echo "    defining HAVE_STRUCT_UTIMBUF"
  2460. echo "#define" HAVE_STRUCT_UTIMBUF "1" >> confdefs.h
  2461. DEFS="$DEFS -DHAVE_STRUCT_UTIMBUF=1"
  2462. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRUCT_UTIMBUF\${ac_dB}HAVE_STRUCT_UTIMBUF\${ac_dC}1\${ac_dD}
  2463. \${ac_uA}HAVE_STRUCT_UTIMBUF\${ac_uB}HAVE_STRUCT_UTIMBUF\${ac_uC}1\${ac_uD}
  2464. \${ac_eA}HAVE_STRUCT_UTIMBUF\${ac_eB}HAVE_STRUCT_UTIMBUF\${ac_eC}1\${ac_eD}
  2465. "
  2466. }
  2467.  
  2468.  
  2469. fi
  2470. rm -f conftest*
  2471.  
  2472.  
  2473. test -n "$silent" || echo "checking for return type of signal handlers"
  2474. cat > conftest.${ac_ext} <<EOF
  2475. #include "confdefs.h"
  2476. #include <sys/types.h>
  2477. #include <signal.h>
  2478. #ifdef signal
  2479. #undef signal
  2480. #endif
  2481. extern void (*signal ()) ();
  2482. int main() { return 0; }
  2483. int t() { int i;; return 0; }
  2484. EOF
  2485. if eval $ac_compile; then
  2486.   rm -rf conftest*
  2487.   
  2488. {
  2489. test -n "$verbose" && \
  2490. echo "    defining" RETSIGTYPE to be "void"
  2491. echo "#define" RETSIGTYPE "void" >> confdefs.h
  2492. DEFS="$DEFS -DRETSIGTYPE=void"
  2493. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  2494. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  2495. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  2496. "
  2497. }
  2498.  
  2499.  
  2500. else
  2501.   rm -rf conftest*
  2502.   
  2503. {
  2504. test -n "$verbose" && \
  2505. echo "    defining" RETSIGTYPE to be "int"
  2506. echo "#define" RETSIGTYPE "int" >> confdefs.h
  2507. DEFS="$DEFS -DRETSIGTYPE=int"
  2508. ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  2509. \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  2510. \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  2511. "
  2512. }
  2513.  
  2514. fi
  2515. rm -f conftest*
  2516.  
  2517.  
  2518.  
  2519. test -n "$silent" || echo "checking for struct timeval"
  2520. cat > conftest.${ac_ext} <<EOF
  2521. #include "confdefs.h"
  2522. #ifdef TIME_WITH_SYS_TIME
  2523. #include <sys/time.h>
  2524. #include <time.h>
  2525. #else
  2526. #ifdef HAVE_SYS_TIME_H
  2527. #include <sys/time.h>
  2528. #else
  2529. #include <time.h>
  2530. #endif
  2531. #endif
  2532. int main() { return 0; }
  2533. int t() { static struct timeval x; x.tv_sec = x.tv_usec;; return 0; }
  2534. EOF
  2535. if eval $ac_compile; then
  2536.   rm -rf conftest*
  2537.   
  2538. {
  2539. test -n "$verbose" && \
  2540. echo "    defining HAVE_TIMEVAL"
  2541. echo "#define" HAVE_TIMEVAL "1" >> confdefs.h
  2542. DEFS="$DEFS -DHAVE_TIMEVAL=1"
  2543. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TIMEVAL\${ac_dB}HAVE_TIMEVAL\${ac_dC}1\${ac_dD}
  2544. \${ac_uA}HAVE_TIMEVAL\${ac_uB}HAVE_TIMEVAL\${ac_uC}1\${ac_uD}
  2545. \${ac_eA}HAVE_TIMEVAL\${ac_eB}HAVE_TIMEVAL\${ac_eC}1\${ac_eD}
  2546. "
  2547. }
  2548.  
  2549.  
  2550. fi
  2551. rm -f conftest*
  2552.  
  2553.  
  2554. test -n "$silent" || echo "checking for struct tm in time.h"
  2555. cat > conftest.${ac_ext} <<EOF
  2556. #include "confdefs.h"
  2557. #include <sys/types.h>
  2558. #include <time.h>
  2559. int main() { return 0; }
  2560. int t() { struct tm *tp; tp->tm_sec;; return 0; }
  2561. EOF
  2562. if eval $ac_compile; then
  2563.   :
  2564. else
  2565.   rm -rf conftest*
  2566.   
  2567. {
  2568. test -n "$verbose" && \
  2569. echo "    defining TM_IN_SYS_TIME"
  2570. echo "#define" TM_IN_SYS_TIME "1" >> confdefs.h
  2571. DEFS="$DEFS -DTM_IN_SYS_TIME=1"
  2572. ac_sed_defs="${ac_sed_defs}\${ac_dA}TM_IN_SYS_TIME\${ac_dB}TM_IN_SYS_TIME\${ac_dC}1\${ac_dD}
  2573. \${ac_uA}TM_IN_SYS_TIME\${ac_uB}TM_IN_SYS_TIME\${ac_uC}1\${ac_uD}
  2574. \${ac_eA}TM_IN_SYS_TIME\${ac_eB}TM_IN_SYS_TIME\${ac_eC}1\${ac_eD}
  2575. "
  2576. }
  2577.  
  2578. fi
  2579. rm -f conftest*
  2580.  
  2581. ac_decl='#include <sys/types.h>
  2582. '
  2583. case "$DEFS" in
  2584.   *TM_IN_SYS_TIME*) ac_decl="$ac_decl
  2585. #include <sys/time.h>
  2586. " ;;
  2587.   *) ac_decl="$ac_decl
  2588. #include <time.h>
  2589. " ;;
  2590. esac
  2591. test -n "$silent" || echo "checking for tm_zone in struct tm"
  2592. cat > conftest.${ac_ext} <<EOF
  2593. #include "confdefs.h"
  2594. $ac_decl
  2595. int main() { return 0; }
  2596. int t() { struct tm tm; tm.tm_zone;; return 0; }
  2597. EOF
  2598. if eval $ac_compile; then
  2599.   rm -rf conftest*
  2600.   
  2601. {
  2602. test -n "$verbose" && \
  2603. echo "    defining HAVE_TM_ZONE"
  2604. echo "#define" HAVE_TM_ZONE "1" >> confdefs.h
  2605. DEFS="$DEFS -DHAVE_TM_ZONE=1"
  2606. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TM_ZONE\${ac_dB}HAVE_TM_ZONE\${ac_dC}1\${ac_dD}
  2607. \${ac_uA}HAVE_TM_ZONE\${ac_uB}HAVE_TM_ZONE\${ac_uC}1\${ac_uD}
  2608. \${ac_eA}HAVE_TM_ZONE\${ac_eB}HAVE_TM_ZONE\${ac_eC}1\${ac_eD}
  2609. "
  2610. }
  2611.  
  2612.  
  2613. else
  2614.   rm -rf conftest*
  2615.   ac_no_tm_zone=1
  2616. fi
  2617. rm -f conftest*
  2618.  
  2619. if test -n "$ac_no_tm_zone"; then
  2620. test -n "$silent" || echo "checking for tzname"
  2621. cat > conftest.${ac_ext} <<EOF
  2622. #include "confdefs.h"
  2623. #include <time.h>
  2624. #ifndef tzname /* For SGI.  */
  2625. extern char *tzname[]; /* RS6000 and others want it this way.  */
  2626. #endif
  2627. int main() { return 0; }
  2628. int t() { atoi(*tzname);; return 0; }
  2629. EOF
  2630. if eval $ac_compile; then
  2631.   rm -rf conftest*
  2632.   
  2633. {
  2634. test -n "$verbose" && \
  2635. echo "    defining HAVE_TZNAME"
  2636. echo "#define" HAVE_TZNAME "1" >> confdefs.h
  2637. DEFS="$DEFS -DHAVE_TZNAME=1"
  2638. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TZNAME\${ac_dB}HAVE_TZNAME\${ac_dC}1\${ac_dD}
  2639. \${ac_uA}HAVE_TZNAME\${ac_uB}HAVE_TZNAME\${ac_uC}1\${ac_uD}
  2640. \${ac_eA}HAVE_TZNAME\${ac_eB}HAVE_TZNAME\${ac_eC}1\${ac_eD}
  2641. "
  2642. }
  2643.  
  2644.  
  2645. fi
  2646. rm -f conftest*
  2647.  
  2648. fi
  2649.  
  2650.  
  2651. cat > conftestmake <<'EOF'
  2652. all:
  2653.     @echo 'ac_maketemp="${MAKE}"'
  2654. EOF
  2655. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2656. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  2657. if test -n "$ac_maketemp"; then SET_MAKE=
  2658. else SET_MAKE="MAKE=${MAKE-make}"; fi
  2659. rm -f conftestmake
  2660.  
  2661.  
  2662. test -n "$silent" || echo "checking byte ordering"
  2663. cat > conftest.${ac_ext} <<EOF
  2664. #include "confdefs.h"
  2665. main () {
  2666.   /* Are we little or big endian?  From Harbison&Steele.  */
  2667.   union
  2668.   {
  2669.     long l;
  2670.     char c[sizeof (long)];
  2671.   } u;
  2672.   u.l = 1;
  2673.   exit (u.c[sizeof (long) - 1] == 1);
  2674. }
  2675. EOF
  2676. eval $ac_compile
  2677. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2678.   :
  2679. else
  2680.   
  2681. {
  2682. test -n "$verbose" && \
  2683. echo "    defining WORDS_BIGENDIAN"
  2684. echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
  2685. DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  2686. ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
  2687. \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
  2688. \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
  2689. "
  2690. }
  2691.  
  2692. fi
  2693. rm -fr conftest*
  2694.  
  2695.  
  2696. test -n "$silent" || echo "checking for long file names"
  2697. ac_some_dir_failed=false
  2698. # Test for long file names in all the places we know might matter:
  2699. #      .        the current directory, where building will happen
  2700. #      /tmp        where it might want to write temporary files
  2701. #      /var/tmp        likewise
  2702. #      /usr/tmp        likewise
  2703. #      $prefix/lib    where we will be installing things
  2704. #      $exec_prefix/lib    likewise
  2705. # eval it to expand exec_prefix.
  2706. for ac_dir in `eval echo . /tmp /var/tmp /usr/tmp $prefix/lib $exec_prefix/lib` ; do
  2707.   test -d $ac_dir || continue
  2708.   test -w $ac_dir || continue # It's less confusing to not echo anything here.
  2709.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  2710.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  2711.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  2712.   test -f $ac_dir/conftest9012345 && test "$val" = 1 || ac_some_dir_failed=true
  2713.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2> /dev/null
  2714. done
  2715. $ac_some_dir_failed || 
  2716. {
  2717. test -n "$verbose" && \
  2718. echo "    defining HAVE_LONG_FILE_NAMES"
  2719. echo "#define" HAVE_LONG_FILE_NAMES "1" >> confdefs.h
  2720. DEFS="$DEFS -DHAVE_LONG_FILE_NAMES=1"
  2721. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LONG_FILE_NAMES\${ac_dB}HAVE_LONG_FILE_NAMES\${ac_dC}1\${ac_dD}
  2722. \${ac_uA}HAVE_LONG_FILE_NAMES\${ac_uB}HAVE_LONG_FILE_NAMES\${ac_uC}1\${ac_uD}
  2723. \${ac_eA}HAVE_LONG_FILE_NAMES\${ac_eB}HAVE_LONG_FILE_NAMES\${ac_eC}1\${ac_eD}
  2724. "
  2725. }
  2726.  
  2727.  
  2728.  
  2729.  
  2730. # What the hell was this doing here??????
  2731. ### echo > confdefs.h        # this gets nuked above...
  2732.  
  2733. #### Choose a window system.
  2734. echo "checking for specified window system"
  2735.  
  2736. window_system=''
  2737. case "${with_x11}" in
  2738.   yes )
  2739.     window_system=${window_system}x11
  2740.   ;;
  2741.   no )
  2742.     window_system=${window_system}none
  2743. esac
  2744.  
  2745. case "${window_system}" in
  2746.   "none" | "x11" ) ;;
  2747.   "" )
  2748.     # --x-includes or --x-libraries implies --with-x11.
  2749.     if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
  2750.       window_system=x11
  2751.     else
  2752.       echo "  No window system specified.  Looking for X11."
  2753.       # If the user didn't specify a window system and we found X11, use it.
  2754.       if [ -r /usr/lib/libX11.a \
  2755.          -o -d /usr/include/X11 \
  2756.          -o -d /usr/X386/include \
  2757.          -o -d /usr/X11R6/include \
  2758.      -o -d ${x_includes}/X11 ]; then
  2759.         window_system=x11
  2760.       fi
  2761.     fi
  2762.   ;;
  2763.   * )
  2764.     echo "Don't specify a window system more than once." >&2
  2765.     exit 1
  2766.   ;;
  2767. esac
  2768.  
  2769. case "${window_system}" in
  2770.   "" | "x11" )
  2771.     ### If the user hasn't specified where we should find X, try
  2772.     ### letting autoconf figure that out.
  2773.     if [ -z "${x_includes}" ] && [ -z "${x_libraries}" ]; then
  2774.       
  2775.       # If we find X, set shell vars x_includes and x_libraries to the paths.
  2776. no_x=true
  2777. if test "x$with_x" != xno; then
  2778. test -n "$silent" || echo "checking for X include and library files with xmkmf"
  2779. rm -fr conftestdir
  2780. if mkdir conftestdir; then
  2781.   cd conftestdir
  2782.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2783.   cat > Imakefile <<'EOF'
  2784. acfindx:
  2785.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2786. EOF
  2787.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2788.     no_x=
  2789.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2790.     eval `make acfindx 2>/dev/null | grep -v make`
  2791.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2792.     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  2793.     then
  2794.       ac_im_usrlibdir=$ac_im_libdir
  2795.     fi
  2796.     case "$ac_im_incroot" in
  2797.     /usr/include) ;;
  2798.     *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
  2799.     esac
  2800.     case "$ac_im_usrlibdir" in
  2801.     /usr/lib | /lib) ;;
  2802.     *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
  2803.     esac
  2804.   fi
  2805.   cd ..
  2806.   rm -fr conftestdir
  2807. fi
  2808.  
  2809. if test -z "$ac_im_usrlibdir"; then
  2810. test -n "$silent" || echo "checking for X include and library files directly"
  2811. if test ".$x_direct_test_library" = . ; then
  2812.    x_direct_test_library='Xt'
  2813. fi
  2814. if test ".$x_direct_test_include" = . ; then
  2815.    x_direct_test_include='X11/Intrinsic.h'
  2816. fi
  2817. cat > conftest.${ac_ext} <<EOF
  2818. #include "confdefs.h"
  2819. #include <$x_direct_test_include>
  2820. EOF
  2821. # Some shells (Coherent) do redirections in the wrong order, so need
  2822. # the parens.
  2823. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2824. if test -z "$ac_err"; then
  2825.   rm -rf conftest*
  2826.   no_x=
  2827.  
  2828. else
  2829.   rm -rf conftest*
  2830.   for ac_dir in               \
  2831.     /usr/X11R6/include        \
  2832.     /usr/X11R5/include        \
  2833.     /usr/X11R4/include        \
  2834.                               \
  2835.     /usr/include/X11R6        \
  2836.     /usr/include/X11R5        \
  2837.     /usr/include/X11R4        \
  2838.                               \
  2839.     /usr/local/X11R6/include  \
  2840.     /usr/local/X11R5/include  \
  2841.     /usr/local/X11R4/include  \
  2842.                               \
  2843.     /usr/local/include/X11R6  \
  2844.     /usr/local/include/X11R5  \
  2845.     /usr/local/include/X11R4  \
  2846.                               \
  2847.     /usr/X11/include          \
  2848.     /usr/include/X11          \
  2849.     /usr/local/X11/include    \
  2850.     /usr/local/include/X11    \
  2851.                               \
  2852.     /usr/X386/include         \
  2853.     /usr/x386/include         \
  2854.     /usr/XFree86/include/X11  \
  2855.                               \
  2856.     /usr/include              \
  2857.     /usr/local/include        \
  2858.     /usr/unsupported/include  \
  2859.     /usr/athena/include       \
  2860.     /usr/local/x11r5/include  \
  2861.     /usr/lpp/Xamples/include  \
  2862.                               \
  2863.     /usr/openwin/include      \
  2864.     /usr/openwin/share/include \
  2865.     ; \
  2866.   do
  2867.     if test -r "$ac_dir/$x_direct_test_include"; then
  2868.       test -z "$x_includes" && x_includes=$ac_dir
  2869.       no_x=
  2870.       break
  2871.     fi
  2872.   done
  2873. fi
  2874. rm -f conftest*
  2875.  
  2876. # Check for the libraries.  First see if replacing the `include' by
  2877. # `lib' works.
  2878. ac_save_LIBS="${LIBS}"
  2879. LIBS="${LIBS} -l"$x_direct_test_library""
  2880. ac_have_lib=""
  2881. test -n "$silent" || echo "checking for -l"$x_direct_test_library""
  2882. cat > conftest.${ac_ext} <<EOF
  2883. #include "confdefs.h"
  2884.  
  2885. int main() { return 0; }
  2886. int t() { main();; return 0; }
  2887. EOF
  2888. if eval $ac_compile; then
  2889.   rm -rf conftest*
  2890.   ac_have_lib="1"
  2891.  
  2892. fi
  2893. rm -f conftest*
  2894. LIBS="${ac_save_LIBS}"
  2895. if test -n "${ac_have_lib}"; then
  2896.    :; no_x=
  2897. else
  2898.    :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
  2899.     /usr/X11R6/lib        \
  2900.     /usr/X11R5/lib        \
  2901.     /usr/X11R4/lib        \
  2902.                           \
  2903.     /usr/lib/X11R6        \
  2904.     /usr/lib/X11R5        \
  2905.     /usr/lib/X11R4        \
  2906.                           \
  2907.     /usr/local/X11R6/lib  \
  2908.     /usr/local/X11R5/lib  \
  2909.     /usr/local/X11R4/lib  \
  2910.                           \
  2911.     /usr/local/lib/X11R6  \
  2912.     /usr/local/lib/X11R5  \
  2913.     /usr/local/lib/X11R4  \
  2914.                           \
  2915.     /usr/X11/lib          \
  2916.     /usr/lib/X11          \
  2917.     /usr/local/X11/lib    \
  2918.     /usr/local/lib/X11    \
  2919.                           \
  2920.     /usr/X386/lib         \
  2921.     /usr/x386/lib         \
  2922.     /usr/XFree86/lib/X11  \
  2923.                           \
  2924.     /usr/lib              \
  2925.     /usr/local/lib        \
  2926.     /usr/unsupported/lib  \
  2927.     /usr/athena/lib       \
  2928.     /usr/local/x11r5/lib  \
  2929.     /usr/lpp/Xamples/lib  \
  2930.                           \
  2931.     /usr/openwin/lib      \
  2932.     /usr/openwin/share/lib \
  2933.     ; \
  2934. do
  2935.   for ac_extension in a so sl; do
  2936.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2937.       test -z "$x_libraries" && x_libraries=$ac_dir
  2938.       no_x=
  2939.       break 2
  2940.     fi
  2941.   done
  2942. done
  2943. fi
  2944.  
  2945. fi
  2946. test -n "$x_includes" && test -n "$verbose" && echo "    X11 headers are in $x_includes"
  2947. test -n "$x_libraries" && test -n "$verbose" && echo "    X11 libraries are in $x_libraries"
  2948. fi
  2949.  
  2950.       
  2951.     fi
  2952.     if [ -n "${x_includes}" ] || [ -n "${x_libraries}" ]; then
  2953.       window_system=x11
  2954.     fi
  2955.   ;;
  2956. esac
  2957.  
  2958. [ -z "${window_system}" ] && window_system=none
  2959.  
  2960. if [ "${window_system}" = "none" ]; then
  2961.   if [ "${with_epoch}" = "yes" ]; then
  2962.      echo "configure: warning: --with-epoch ignored:  Not valid without X support" >&2 
  2963.     with_epoch='no'
  2964.   fi
  2965.   if [ "x${with_menubars}" != x ]; then
  2966.      echo "configure: warning: --with-menubars ignored:  Not valid without X support" >&2 
  2967.     with_menubars='no'
  2968.   fi
  2969.   if [ "x${with_scrollbars}" != x ]; then
  2970.      echo "configure: warning: --with-scrollbars ignored:  Not valid without X support" >&2 
  2971.     with_scrollbars='no'
  2972.   fi
  2973.   if [ "x${with_dialogs}" != x ]; then
  2974.      echo "configure: warning: --with-dialogs ignored:  Not valid without X support" >&2 
  2975.     with_dialogs='no'
  2976.   fi
  2977.   with_menubars='no'
  2978.   with_scrollbars='no'
  2979.   with_dialogs='no'
  2980. fi
  2981.  
  2982. case "${canonical}" in
  2983.   *-sun-solaris* | *-sun-sunos5* ) add_runtime_flag=yes ;;
  2984. esac
  2985.  
  2986. if [ -n "${x_libraries}" ]; then
  2987.     if [ "${add_runtime_flag}" ]; then
  2988.     LD_SWITCH_X_SITE="-L${x_libraries} -R${dash_r_space}${x_libraries}"
  2989.     else
  2990.     LD_SWITCH_X_SITE="-L${x_libraries}"
  2991.     fi
  2992. fi
  2993. # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived.  See s/sol2*.h.
  2994. # [ -n "${x_libraries}" ] && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
  2995. [ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
  2996.  
  2997. if [ -n "${site_libraries}" ]; then
  2998.   for arg in ${site_libraries}
  2999.   do
  3000.     LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
  3001.   done
  3002. fi
  3003. if [ -n "${site_runtime_libraries}" ]; then
  3004.   for arg in ${site_runtime_libraries}
  3005.   do
  3006.     LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
  3007.     LD_SWITCH_SITE="${LD_SWITCH_SITE} -R${dash_r_space}${arg}"
  3008.   done
  3009. fi
  3010. if [ -n "${site_includes}" ]; then
  3011.   for arg in ${site_includes}
  3012.   do
  3013.     C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
  3014.     CPP="${CPP} -I${arg}"
  3015.   done
  3016. fi
  3017.  
  3018. # Avoid forcing the search of /usr/include before fixed include files.
  3019. if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
  3020.    C_SWITCH_X_SITE=" "
  3021. fi
  3022.  
  3023. # Need for check for audio/Xtutil.h.
  3024. CPP="${CPP} ${C_SWITCH_X_SITE}"
  3025.  
  3026. case "${window_system}" in
  3027.   x11 )
  3028.     HAVE_X_WINDOWS=yes
  3029.     echo "  Using X11."
  3030.   ;;
  3031.   none )
  3032.     HAVE_X_WINDOWS=no
  3033.     echo "  Using no window system."
  3034.   ;;
  3035. esac
  3036.  
  3037. #### Extract some information from the operating system and machine files.
  3038.  
  3039. echo "examining the machine- and system-dependent files to find out"
  3040. echo " - which libraries the lib-src programs will want, and"
  3041. echo " - whether the GNU malloc routines are usable."
  3042.  
  3043. ### First figure out CFLAGS (which we use for running the compiler here)
  3044. ### and REAL_CFLAGS (which we use for real compilation).
  3045. ### The two are the same except on a few systems, where they are made
  3046. ### different to work around various lossages.  For example,
  3047. ### GCC 2.5 on Linux needs them to be different because it treats -g
  3048. ### as implying static linking.
  3049.  
  3050. ### If the CFLAGS env var is specified, we use that value
  3051. ### instead of the default.
  3052.  
  3053. ### It's not important that this name contain the PID; you can't run
  3054. ### two configures in the same directory and have anything work
  3055. ### anyway.
  3056. tempcname="conftest.c"
  3057.  
  3058. echo '
  3059. #define THIS_IS_YMAKEFILE
  3060. #include "'${srcdir}'/src/'${opsysfile}'"
  3061. #include "'${srcdir}'/src/'${machfile}'"
  3062. #ifndef LIBS_MACHINE
  3063. #define LIBS_MACHINE
  3064. #endif
  3065. #ifndef LIBS_SYSTEM
  3066. #define LIBS_SYSTEM
  3067. #endif
  3068. #ifndef C_SWITCH_SYSTEM
  3069. #define C_SWITCH_SYSTEM
  3070. #endif
  3071. #ifndef C_SWITCH_X_SYSTEM
  3072. #define C_SWITCH_X_SYSTEM
  3073. #endif
  3074. #ifndef C_SWITCH_MACHINE
  3075. #define C_SWITCH_MACHINE
  3076. #endif
  3077. #ifndef LD_SWITCH_X_SYSTEM
  3078. #define LD_SWITCH_X_SYSTEM
  3079. #endif
  3080. #ifndef LIB_STANDARD
  3081. #define LIB_STANDARD
  3082. #endif
  3083. configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
  3084. configure___ c_switch_system=C_SWITCH_SYSTEM
  3085. configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
  3086. configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
  3087. configure___ c_switch_machine=C_SWITCH_MACHINE
  3088.  
  3089. #ifndef LIB_X11_LIB
  3090. #define LIB_X11_LIB -lX11
  3091. #endif
  3092.  
  3093. #ifndef LIBX11_MACHINE
  3094. #define LIBX11_MACHINE
  3095. #endif
  3096.  
  3097. #ifndef LIBX11_SYSTEM
  3098. #define LIBX11_SYSTEM
  3099. #endif
  3100. configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
  3101.  
  3102. #ifdef UNEXEC
  3103. configure___ unexec=UNEXEC
  3104. #else
  3105. configure___ unexec=unexec.o
  3106. #endif
  3107.  
  3108. #ifdef SYSTEM_MALLOC
  3109. configure___ system_malloc=yes
  3110. #else
  3111. configure___ system_malloc=no
  3112. #endif
  3113.  
  3114. #ifndef C_DEBUG_SWITCH
  3115. #define C_DEBUG_SWITCH -g
  3116. #endif
  3117.  
  3118. #ifndef C_OPTIMIZE_SWITCH
  3119. #define C_OPTIMIZE_SWITCH -O
  3120. #endif
  3121.  
  3122. #ifdef THIS_IS_CONFIGURE
  3123.  
  3124. /* Get the CFLAGS for tests in configure.  */
  3125. #ifdef __GNUC__
  3126. configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}'
  3127. #else
  3128. configure___ CFLAGS=C_DEBUG_SWITCH '${CFLAGS}'
  3129. #endif
  3130.  
  3131. #else /* not THIS_IS_CONFIGURE */
  3132.  
  3133. /* Get the CFLAGS for real compilation.  */
  3134. #ifdef __GNUC__
  3135. configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}'
  3136. #else
  3137. configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${CFLAGS}'
  3138. #endif
  3139.  
  3140. #endif /* not THIS_IS_CONFIGURE */
  3141. ' > ${tempcname}
  3142. # The value of CPP is a quoted variable reference, so we need to do this
  3143. # to get its actual value...
  3144. CPP=`eval "echo $CPP"`
  3145. eval `${CPP} -Isrc ${tempcname} \
  3146.        | grep 'configure___' \
  3147.        | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
  3148. if [ "x$CFLAGS" = x ]; then
  3149.   eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
  3150.      | grep 'configure___' \
  3151.      | sed -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/'`
  3152. else
  3153.   REAL_CFLAGS="$CFLAGS"
  3154. fi
  3155. rm ${tempcname}
  3156.  
  3157. # override CFLAGS if user wishes
  3158. if [ "${cflags}" != "NO_CFLAGS_DEFINED" ]; then
  3159.   REAL_CFLAGS=${cflags}
  3160. fi
  3161.  
  3162. ### Compute the unexec source name from the object name.
  3163. UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
  3164.  
  3165. # Do the opsystem or machine files prohibit the use of the GNU malloc?
  3166. # Assume not, until told otherwise.
  3167. GNU_MALLOC=yes
  3168. if [ "${system_malloc}" = "yes" ]; then
  3169.   GNU_MALLOC=no
  3170.   GNU_MALLOC_reason="
  3171.   (The GNU allocators don't work with this system configuration.)"
  3172. fi
  3173.  
  3174. LISP_FLOAT_TYPE=yes
  3175.  
  3176.  
  3177. #### Add the libraries to LIBS and check for some functions.
  3178.  
  3179.  
  3180. DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
  3181. LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs"
  3182.  
  3183. ac_save_LIBS="${LIBS}"
  3184. LIBS="${LIBS} -ldnet"
  3185. ac_have_lib=""
  3186. test -n "$silent" || echo "checking for -ldnet"
  3187. cat > conftest.${ac_ext} <<EOF
  3188. #include "confdefs.h"
  3189.  
  3190. int main() { return 0; }
  3191. int t() { main();; return 0; }
  3192. EOF
  3193. if eval $ac_compile; then
  3194.   rm -rf conftest*
  3195.   ac_have_lib="1"
  3196.  
  3197. fi
  3198. rm -f conftest*
  3199. LIBS="${ac_save_LIBS}"
  3200. if test -n "${ac_have_lib}"; then
  3201.    
  3202. {
  3203. test -n "$verbose" && \
  3204. echo "    defining HAVE_LIBDNET"
  3205. echo "#define" HAVE_LIBDNET "1" >> confdefs.h
  3206. DEFS="$DEFS -DHAVE_LIBDNET=1"
  3207. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBDNET\${ac_dB}HAVE_LIBDNET\${ac_dC}1\${ac_dD}
  3208. \${ac_uA}HAVE_LIBDNET\${ac_uB}HAVE_LIBDNET\${ac_uC}1\${ac_uD}
  3209. \${ac_eA}HAVE_LIBDNET\${ac_eB}HAVE_LIBDNET\${ac_eC}1\${ac_eD}
  3210. "
  3211. }
  3212.  
  3213.    LIBS="${LIBS} -ldnet"
  3214. fi
  3215.  
  3216.  
  3217. ac_save_LIBS="${LIBS}"
  3218. LIBS="${LIBS} -lXbsd"
  3219. ac_have_lib=""
  3220. test -n "$silent" || echo "checking for -lXbsd"
  3221. cat > conftest.${ac_ext} <<EOF
  3222. #include "confdefs.h"
  3223.  
  3224. int main() { return 0; }
  3225. int t() { main();; return 0; }
  3226. EOF
  3227. if eval $ac_compile; then
  3228.   rm -rf conftest*
  3229.   ac_have_lib="1"
  3230.  
  3231. fi
  3232. rm -f conftest*
  3233. LIBS="${ac_save_LIBS}"
  3234. if test -n "${ac_have_lib}"; then
  3235.    :; LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
  3236. else
  3237.    :; 
  3238. fi
  3239.  
  3240.  
  3241. echo checking for XFree86
  3242. if test -d /usr/X386/include; then
  3243.   HAVE_XFREE386=yes
  3244.   test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
  3245. elif test -d /usr/X11R6/include; then
  3246.   HAVE_XFREE386=yes
  3247.   test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
  3248. fi
  3249.  
  3250. if test "${HAVE_X_WINDOWS}" = "yes"; then
  3251.   DEFS="$C_SWITCH_X_SITE $DEFS"
  3252.   LIBS="$LD_SWITCH_X_SITE $LIBS $LIBX"
  3253. fi
  3254.  
  3255. #
  3256. # make sure we can find libX11.*
  3257. #
  3258. if test "${window_system}" != "none" ; then
  3259.   internal_xlibs_found='no'
  3260.   ac_save_LIBS="${LIBS}"
  3261. LIBS="${LIBS} -lX11"
  3262. ac_have_lib=""
  3263. test -n "$silent" || echo "checking for -lX11"
  3264. cat > conftest.${ac_ext} <<EOF
  3265. #include "confdefs.h"
  3266.  
  3267. int main() { return 0; }
  3268. int t() { main();; return 0; }
  3269. EOF
  3270. if eval $ac_compile; then
  3271.   rm -rf conftest*
  3272.   ac_have_lib="1"
  3273.  
  3274. fi
  3275. rm -f conftest*
  3276. LIBS="${ac_save_LIBS}"
  3277. if test -n "${ac_have_lib}"; then
  3278.    :; internal_xlibs_found='yes'
  3279. else
  3280.    :; 
  3281. fi
  3282.  
  3283.   if test "${internal_xlibs_found}" = "no" ; then
  3284.     echo "Unable to find X11 libraries." >&2
  3285.     exit 1
  3286.   fi
  3287. fi
  3288.  
  3289. #
  3290. # make sure we can find Intrinsic.h
  3291. #
  3292. if test "${window_system}" != "none" ; then
  3293.   internal_xincludes_found='no'
  3294.   for arg in ${DEFS} /usr/include
  3295.   do
  3296.     if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
  3297.       internal_xincludes_found='yes'
  3298.     fi
  3299.   done
  3300.   if test "${internal_xincludes_found}" = "no" ; then
  3301.     echo "Unable to find X11 header files." >&2
  3302.     exit 1
  3303.   fi
  3304. fi
  3305.  
  3306. #
  3307. # See if we can find Xauth.
  3308. #
  3309. with_xauth='no'
  3310. internal_xauth_lib_found='no'
  3311. ac_save_LIBS="${LIBS}"
  3312. LIBS="${LIBS} -lXau"
  3313. ac_have_lib=""
  3314. test -n "$silent" || echo "checking for -lXau"
  3315. cat > conftest.${ac_ext} <<EOF
  3316. #include "confdefs.h"
  3317.  
  3318. int main() { return 0; }
  3319. int t() { main();; return 0; }
  3320. EOF
  3321. if eval $ac_compile; then
  3322.   rm -rf conftest*
  3323.   ac_have_lib="1"
  3324.  
  3325. fi
  3326. rm -f conftest*
  3327. LIBS="${ac_save_LIBS}"
  3328. if test -n "${ac_have_lib}"; then
  3329.    :; internal_xauth_lib_found='yes'
  3330. else
  3331.    :; 
  3332. fi
  3333.  
  3334. if test "${internal_xauth_lib_found}" = "yes" ; then
  3335.   internal_xauth_includes_found='no'
  3336.   for arg in ${DEFS} /usr/include
  3337.   do
  3338.     if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
  3339.       internal_xauth_includes_found='yes'
  3340.     fi
  3341.   done
  3342.   if test "${internal_xauth_includes_found}" = "yes" ; then
  3343.     test -n "$verbose" && echo "    defining HAVE_XAUTH"
  3344.     with_xauth='yes'
  3345.   fi
  3346. fi
  3347.  
  3348. test -n "$silent" || echo "checking the version of X11 being used"
  3349. cat > conftest.${ac_ext} <<EOF
  3350. #include <X11/Intrinsic.h>
  3351. int main() {
  3352. #if (XlibSpecificationRelease == 4)
  3353.   printf ("X11R4\n");
  3354. #elif (XlibSpecificationRelease == 5)
  3355.   printf ("X11R5\n");
  3356. #elif (XlibSpecificationRelease == 6)
  3357.   printf ("X11R6\n");
  3358. #endif
  3359.   return 0;
  3360. }
  3361. EOF
  3362. ac_save_LIBS="${LIBS}"
  3363. LIBS="${LIBS} ${DEFS}"
  3364. if eval $ac_compile; then
  3365.   ac_find_x_version=`./conftest`
  3366.   
  3367.     if [ "$ac_find_x_version" = "X11R4" ]; then
  3368.        
  3369. {
  3370. test -n "$verbose" && \
  3371. echo "    defining THIS_IS_X11R4"
  3372. echo "#define" THIS_IS_X11R4 "1" >> confdefs.h
  3373. DEFS="$DEFS -DTHIS_IS_X11R4=1"
  3374. ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R4\${ac_dB}THIS_IS_X11R4\${ac_dC}1\${ac_dD}
  3375. \${ac_uA}THIS_IS_X11R4\${ac_uB}THIS_IS_X11R4\${ac_uC}1\${ac_uD}
  3376. \${ac_eA}THIS_IS_X11R4\${ac_eB}THIS_IS_X11R4\${ac_eC}1\${ac_eD}
  3377. "
  3378. }
  3379.  
  3380.     elif [ "$ac_find_x_version" = "X11R5" ]; then
  3381.        
  3382. {
  3383. test -n "$verbose" && \
  3384. echo "    defining THIS_IS_X11R5"
  3385. echo "#define" THIS_IS_X11R5 "1" >> confdefs.h
  3386. DEFS="$DEFS -DTHIS_IS_X11R5=1"
  3387. ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R5\${ac_dB}THIS_IS_X11R5\${ac_dC}1\${ac_dD}
  3388. \${ac_uA}THIS_IS_X11R5\${ac_uB}THIS_IS_X11R5\${ac_uC}1\${ac_uD}
  3389. \${ac_eA}THIS_IS_X11R5\${ac_eB}THIS_IS_X11R5\${ac_eC}1\${ac_eD}
  3390. "
  3391. }
  3392.  
  3393.     elif [ "$ac_find_x_version" = "X11R6" ]; then
  3394.        
  3395. {
  3396. test -n "$verbose" && \
  3397. echo "    defining THIS_IS_X11R6"
  3398. echo "#define" THIS_IS_X11R6 "1" >> confdefs.h
  3399. DEFS="$DEFS -DTHIS_IS_X11R6=1"
  3400. ac_sed_defs="${ac_sed_defs}\${ac_dA}THIS_IS_X11R6\${ac_dB}THIS_IS_X11R6\${ac_dC}1\${ac_dD}
  3401. \${ac_uA}THIS_IS_X11R6\${ac_uB}THIS_IS_X11R6\${ac_uC}1\${ac_uD}
  3402. \${ac_eA}THIS_IS_X11R6\${ac_eB}THIS_IS_X11R6\${ac_eC}1\${ac_eD}
  3403. "
  3404. }
  3405.  
  3406.     fi
  3407.   
  3408. fi
  3409. LIBS=$ac_save_LIBS
  3410. rm -f conftest*
  3411.  
  3412.  
  3413. #
  3414. # if Energize specified, make sure we can find its need libraries/headers
  3415. #
  3416. if test "${with_energize}" = "yes" ; then
  3417.   ac_save_LIBS="${LIBS}"
  3418. LIBS="${LIBS} -lenergize"
  3419. ac_have_lib=""
  3420. test -n "$silent" || echo "checking for -lenergize"
  3421. cat > conftest.${ac_ext} <<EOF
  3422. #include "confdefs.h"
  3423.  
  3424. int main() { return 0; }
  3425. int t() { main();; return 0; }
  3426. EOF
  3427. if eval $ac_compile; then
  3428.   rm -rf conftest*
  3429.   ac_have_lib="1"
  3430.  
  3431. fi
  3432. rm -f conftest*
  3433. LIBS="${ac_save_LIBS}"
  3434. if test -n "${ac_have_lib}"; then
  3435.    :; energize_version='3.X'
  3436. else
  3437.    :; 
  3438. fi
  3439.  
  3440.   if test "${energize_version}" = "no" ; then
  3441.     ac_save_LIBS="${LIBS}"
  3442. LIBS="${LIBS} -lconn"
  3443. ac_have_lib=""
  3444. test -n "$silent" || echo "checking for -lconn"
  3445. cat > conftest.${ac_ext} <<EOF
  3446. #include "confdefs.h"
  3447.  
  3448. int main() { return 0; }
  3449. int t() { main();; return 0; }
  3450. EOF
  3451. if eval $ac_compile; then
  3452.   rm -rf conftest*
  3453.   ac_have_lib="1"
  3454.  
  3455. fi
  3456. rm -f conftest*
  3457. LIBS="${ac_save_LIBS}"
  3458. if test -n "${ac_have_lib}"; then
  3459.    :; energize_version='2.X'
  3460. else
  3461.    :; 
  3462. fi
  3463.  
  3464.     if test "${energize_version}" = "no" ; then
  3465.       echo "Unable to find Energize library." >&2
  3466.       exit 1
  3467.     fi
  3468.   fi
  3469.  
  3470.   internal_eincludes_found='no'
  3471.   for arg in ${DEFS} /usr/include
  3472.   do
  3473.     if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
  3474.       internal_eincludes_found='yes'
  3475.     fi
  3476.   done
  3477.   if test "${internal_eincludes_found}" = "no" ; then
  3478.     echo "Unable to find Energize editorconn.h header file." >&2
  3479.     exit 1
  3480.   fi
  3481. fi
  3482.  
  3483. # logb and frexp are found in -lm on most systems.
  3484. ac_save_LIBS="${LIBS}"
  3485. LIBS="${LIBS} -lm"
  3486. ac_have_lib=""
  3487. test -n "$silent" || echo "checking for -lm"
  3488. cat > conftest.${ac_ext} <<EOF
  3489. #include "confdefs.h"
  3490.  
  3491. int main() { return 0; }
  3492. int t() { main();; return 0; }
  3493. EOF
  3494. if eval $ac_compile; then
  3495.   rm -rf conftest*
  3496.   ac_have_lib="1"
  3497.  
  3498. fi
  3499. rm -f conftest*
  3500. LIBS="${ac_save_LIBS}"
  3501. if test -n "${ac_have_lib}"; then
  3502.    
  3503. {
  3504. test -n "$verbose" && \
  3505. echo "    defining HAVE_LIBM"
  3506. echo "#define" HAVE_LIBM "1" >> confdefs.h
  3507. DEFS="$DEFS -DHAVE_LIBM=1"
  3508. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD}
  3509. \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
  3510. \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
  3511. "
  3512. }
  3513.  
  3514.    LIBS="${LIBS} -lm"
  3515. fi
  3516.  
  3517.  
  3518. # see if XPM is hanging around somewhere
  3519. if test "${window_system}" != "none" ; then
  3520.   if test "${with_xpm}" != "no" ; then
  3521.     if test "${with_xpm}" != "yes" ; then
  3522.       ac_save_LIBS="${LIBS}"
  3523. LIBS="${LIBS} -lXpm"
  3524. ac_have_lib=""
  3525. test -n "$silent" || echo "checking for -lXpm"
  3526. cat > conftest.${ac_ext} <<EOF
  3527. #include "confdefs.h"
  3528.  
  3529. int main() { return 0; }
  3530. int t() { main();; return 0; }
  3531. EOF
  3532. if eval $ac_compile; then
  3533.   rm -rf conftest*
  3534.   ac_have_lib="1"
  3535.  
  3536. fi
  3537. rm -f conftest*
  3538. LIBS="${ac_save_LIBS}"
  3539. if test -n "${ac_have_lib}"; then
  3540.    :; with_xpm="yes"
  3541. else
  3542.    :; 
  3543. fi
  3544.  
  3545.       if test "${with_xpm}" = "yes" ; then
  3546.         test -n "$verbose" && echo "    defining HAVE_XPM"
  3547.       fi
  3548.     fi
  3549.   fi
  3550. fi
  3551.  
  3552. # see if COMPFACE is hanging around somewhere
  3553. if test "${window_system}" != "none" ; then
  3554.   if test "${with_xface}" != "no" ; then
  3555.     if test "${with_xface}" != "yes" ; then
  3556.       test -n "$silent" || echo "checking for compface.h"
  3557. cat > conftest.${ac_ext} <<EOF
  3558. #include "confdefs.h"
  3559. #include <compface.h>
  3560. EOF
  3561. # Some shells (Coherent) do redirections in the wrong order, so need
  3562. # the parens.
  3563. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  3564. if test -z "$ac_err"; then
  3565.   rm -rf conftest*
  3566.   compface_incl="yes"
  3567.  
  3568. else
  3569.   rm -rf conftest*
  3570.   with_xface="no"
  3571. fi
  3572. rm -f conftest*
  3573.  
  3574.       if test "${compface_incl}" = "yes" ; then
  3575.         ac_save_LIBS="${LIBS}"
  3576. LIBS="${LIBS} -lcompface"
  3577. ac_have_lib=""
  3578. test -n "$silent" || echo "checking for -lcompface"
  3579. cat > conftest.${ac_ext} <<EOF
  3580. #include "confdefs.h"
  3581.  
  3582. int main() { return 0; }
  3583. int t() { main();; return 0; }
  3584. EOF
  3585. if eval $ac_compile; then
  3586.   rm -rf conftest*
  3587.   ac_have_lib="1"
  3588.  
  3589. fi
  3590. rm -f conftest*
  3591. LIBS="${ac_save_LIBS}"
  3592. if test -n "${ac_have_lib}"; then
  3593.    :; with_xface="yes"
  3594. else
  3595.    :; 
  3596. fi
  3597.  
  3598.         if test "${with_xface}" = "yes" ; then
  3599.           test -n "$verbose" && echo "    defining HAVE_XFACE"
  3600.         fi
  3601.       fi
  3602.     fi
  3603.   fi
  3604. fi
  3605.  
  3606. # #### add autodetect for GIF, JPEG, and PNG here
  3607.  
  3608. # We use Lucid toolkit defaults for the menubars and scrollbars, but
  3609. # if Motif is available we use it for the dialog boxes.
  3610. if test "${window_system}" != "none" ; then
  3611.   if test "x${with_dialogs}" = "x" ; then
  3612.       # We can't use ac_have_library because it simply appends -lXm to the
  3613.       # end of the link line which is insufficient since -lXm will generate
  3614.       # dependencies on -lXt
  3615. # begin expansion of ac_have_library
  3616. ac_save_LIBS="${LIBS}"
  3617. LIBS="${LIBS} -lXm -lXt ${LIBS}"
  3618. ac_have_lib=""
  3619. test -n "$silent" || echo "checking for -lXm"
  3620. cat > conftest.${ac_ext} <<EOF
  3621. #include "confdefs.h"
  3622.  
  3623. int main() { return 0; }
  3624. int t() { main();; return 0; }
  3625. EOF
  3626. if eval $ac_compile; then
  3627.   rm -rf conftest*
  3628.   ac_have_lib="1"
  3629.  
  3630. fi
  3631. rm -f conftest*
  3632. LIBS="${ac_save_LIBS}"
  3633. if test -n "${ac_have_lib}"; then
  3634.    :; with_dialogs="motif"
  3635. else
  3636.    :; 
  3637. fi
  3638. # end expansion of ac_have_library
  3639.     if test "${with_dialogs}" = "motif" ; then
  3640.       test -n "$verbose" && echo "    Found Motif"
  3641.     fi
  3642.   fi
  3643. fi
  3644.  
  3645.  
  3646. if [ "${with_menubars}" = "motif" ] || [ "${with_scrollbars}" = "motif" ] \
  3647.    || [ "${with_dialogs}" = "motif" ]; then
  3648.   with_motif='yes'
  3649. fi
  3650.  
  3651. # Finish ensuring that we have values for the various toolkit items.
  3652. if [ "x${with_menubars}" = "x" ] || [ "${with_menubars}" = "athena" ]; then
  3653.   with_menubars='lucid'
  3654. fi
  3655. if [ "x${with_scrollbars}" = "x" ]; then
  3656.     with_scrollbars='lucid'
  3657. fi
  3658. if [ "x${with_dialogs}" = "x" ] || [ "${with_dialogs}" = "lucid" ]; then
  3659.     with_dialogs='athena'
  3660. fi
  3661.  
  3662.  
  3663. # If netdb.h doesn't declare h_errno, we must declare it by hand.
  3664. test -n "$silent" || echo "checking for declaration of h_errno in netdb.h"
  3665. cat > conftest.${ac_ext} <<EOF
  3666. #include "confdefs.h"
  3667. #include <netdb.h>
  3668. int main() { return 0; }
  3669. int t() { 
  3670. int
  3671. foo ()
  3672. {
  3673.   return h_errno;
  3674. }
  3675. ; return 0; }
  3676. EOF
  3677. if eval $ac_compile; then
  3678.   rm -rf conftest*
  3679.   
  3680. {
  3681. test -n "$verbose" && \
  3682. echo "    defining HAVE_H_ERRNO"
  3683. echo "#define" HAVE_H_ERRNO "1" >> confdefs.h
  3684. DEFS="$DEFS -DHAVE_H_ERRNO=1"
  3685. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_H_ERRNO\${ac_dB}HAVE_H_ERRNO\${ac_dC}1\${ac_dD}
  3686. \${ac_uA}HAVE_H_ERRNO\${ac_uB}HAVE_H_ERRNO\${ac_uC}1\${ac_uD}
  3687. \${ac_eA}HAVE_H_ERRNO\${ac_eB}HAVE_H_ERRNO\${ac_eC}1\${ac_eD}
  3688. "
  3689. }
  3690.  
  3691.  
  3692. fi
  3693. rm -f conftest*
  3694.  
  3695.  
  3696. # This does all sorts of magic to make sure alloca() works OK.
  3697. # It might even add some junk to the top of <config.h>.
  3698. # (I don't understand what goes on here, but it seems to work.)
  3699. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3700. # for constant arguments.  Useless!
  3701. test -n "$silent" || echo "checking for working alloca.h"
  3702. cat > conftest.${ac_ext} <<EOF
  3703. #include "confdefs.h"
  3704. #include <alloca.h>
  3705. int main() { return 0; }
  3706. int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  3707. EOF
  3708. if eval $ac_compile; then
  3709.   rm -rf conftest*
  3710.   
  3711. {
  3712. test -n "$verbose" && \
  3713. echo "    defining HAVE_ALLOCA_H"
  3714. echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  3715. DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  3716. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA_H\${ac_dB}HAVE_ALLOCA_H\${ac_dC}1\${ac_dD}
  3717. \${ac_uA}HAVE_ALLOCA_H\${ac_uB}HAVE_ALLOCA_H\${ac_uC}1\${ac_uD}
  3718. \${ac_eA}HAVE_ALLOCA_H\${ac_eB}HAVE_ALLOCA_H\${ac_eC}1\${ac_eD}
  3719. "
  3720. }
  3721.  
  3722.  
  3723. fi
  3724. rm -f conftest*
  3725.  
  3726. ac_decl="#ifdef __GNUC__
  3727. #define alloca __builtin_alloca
  3728. #else
  3729. #if HAVE_ALLOCA_H
  3730. #include <alloca.h>
  3731. #else
  3732. #ifdef _AIX
  3733.  #pragma alloca
  3734. #else
  3735. char *alloca ();
  3736. #endif
  3737. #endif
  3738. #endif
  3739. "
  3740. test -n "$silent" || echo "checking for alloca"
  3741. cat > conftest.${ac_ext} <<EOF
  3742. #include "confdefs.h"
  3743. $ac_decl
  3744. int main() { return 0; }
  3745. int t() { char *p = (char *) alloca(1);; return 0; }
  3746. EOF
  3747. if eval $ac_compile; then
  3748.   rm -rf conftest*
  3749.   
  3750. {
  3751. test -n "$verbose" && \
  3752. echo "    defining HAVE_ALLOCA"
  3753. echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  3754. DEFS="$DEFS -DHAVE_ALLOCA=1"
  3755. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_ALLOCA\${ac_dB}HAVE_ALLOCA\${ac_dC}1\${ac_dD}
  3756. \${ac_uA}HAVE_ALLOCA\${ac_uB}HAVE_ALLOCA\${ac_uC}1\${ac_uD}
  3757. \${ac_eA}HAVE_ALLOCA\${ac_eB}HAVE_ALLOCA\${ac_eC}1\${ac_eD}
  3758. "
  3759. }
  3760.  
  3761.  
  3762. else
  3763.   rm -rf conftest*
  3764.   ac_alloca_missing=1
  3765. cat > conftest.${ac_ext} <<EOF
  3766. #include "confdefs.h"
  3767.  
  3768. #if defined(CRAY) && ! defined(CRAY2)
  3769. winnitude
  3770. #else
  3771. lossage
  3772. #endif
  3773.  
  3774. EOF
  3775. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  3776. if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  3777.   rm -rf conftest*
  3778.   test -n "$silent" || echo "checking for _getb67"
  3779. cat > conftest.${ac_ext} <<EOF
  3780. #include "confdefs.h"
  3781. #include <ctype.h>
  3782. int main() { return 0; }
  3783. int t() { 
  3784. /* The GNU C library defines this for functions which it implements
  3785.     to always fail with ENOSYS.  Some functions are actually named
  3786.     something starting with __ and the normal name is an alias.  */
  3787. #if defined (__stub__getb67) || defined (__stub____getb67)
  3788. choke me
  3789. #else
  3790. /* Override any gcc2 internal prototype to avoid an error.  */
  3791. extern char _getb67(); _getb67();
  3792. #endif
  3793. ; return 0; }
  3794. EOF
  3795. if eval $ac_compile; then
  3796.   rm -rf conftest*
  3797.   {
  3798. test -n "$verbose" && \
  3799. echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  3800. echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  3801. DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  3802. ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}_getb67\${ac_dD}
  3803. \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}_getb67\${ac_uD}
  3804. \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}_getb67\${ac_eD}
  3805. "
  3806. }
  3807.  
  3808.  
  3809. else
  3810.   rm -rf conftest*
  3811.   test -n "$silent" || echo "checking for GETB67"
  3812. cat > conftest.${ac_ext} <<EOF
  3813. #include "confdefs.h"
  3814. #include <ctype.h>
  3815. int main() { return 0; }
  3816. int t() { 
  3817. /* The GNU C library defines this for functions which it implements
  3818.     to always fail with ENOSYS.  Some functions are actually named
  3819.     something starting with __ and the normal name is an alias.  */
  3820. #if defined (__stub_GETB67) || defined (__stub___GETB67)
  3821. choke me
  3822. #else
  3823. /* Override any gcc2 internal prototype to avoid an error.  */
  3824. extern char GETB67(); GETB67();
  3825. #endif
  3826. ; return 0; }
  3827. EOF
  3828. if eval $ac_compile; then
  3829.   rm -rf conftest*
  3830.   {
  3831. test -n "$verbose" && \
  3832. echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  3833. echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  3834. DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  3835. ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}GETB67\${ac_dD}
  3836. \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}GETB67\${ac_uD}
  3837. \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}GETB67\${ac_eD}
  3838. "
  3839. }
  3840.  
  3841.  
  3842. else
  3843.   rm -rf conftest*
  3844.   test -n "$silent" || echo "checking for getb67"
  3845. cat > conftest.${ac_ext} <<EOF
  3846. #include "confdefs.h"
  3847. #include <ctype.h>
  3848. int main() { return 0; }
  3849. int t() { 
  3850. /* The GNU C library defines this for functions which it implements
  3851.     to always fail with ENOSYS.  Some functions are actually named
  3852.     something starting with __ and the normal name is an alias.  */
  3853. #if defined (__stub_getb67) || defined (__stub___getb67)
  3854. choke me
  3855. #else
  3856. /* Override any gcc2 internal prototype to avoid an error.  */
  3857. extern char getb67(); getb67();
  3858. #endif
  3859. ; return 0; }
  3860. EOF
  3861. if eval $ac_compile; then
  3862.   rm -rf conftest*
  3863.   {
  3864. test -n "$verbose" && \
  3865. echo "    defining" CRAY_STACKSEG_END to be "getb67"
  3866. echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  3867. DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  3868. ac_sed_defs="${ac_sed_defs}\${ac_dA}CRAY_STACKSEG_END\${ac_dB}CRAY_STACKSEG_END\${ac_dC}getb67\${ac_dD}
  3869. \${ac_uA}CRAY_STACKSEG_END\${ac_uB}CRAY_STACKSEG_END\${ac_uC}getb67\${ac_uD}
  3870. \${ac_eA}CRAY_STACKSEG_END\${ac_eB}CRAY_STACKSEG_END\${ac_eC}getb67\${ac_eD}
  3871. "
  3872. }
  3873.  
  3874.  
  3875. fi
  3876. rm -f conftest*
  3877.  
  3878. fi
  3879. rm -f conftest*
  3880.  
  3881. fi
  3882. rm -f conftest*
  3883.  
  3884.  
  3885. fi
  3886. rm -f conftest*
  3887.  
  3888.  
  3889. fi
  3890. rm -f conftest*
  3891.  
  3892. if test -n "$ac_alloca_missing"; then
  3893.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3894.   # that cause trouble.  Some versions do not even contain alloca or
  3895.   # contain a buggy version.  If you still want to use their alloca,
  3896.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  3897.   ALLOCA=alloca.o
  3898.   
  3899. {
  3900. test -n "$verbose" && \
  3901. echo "    defining C_ALLOCA"
  3902. echo "#define" C_ALLOCA "1" >> confdefs.h
  3903. DEFS="$DEFS -DC_ALLOCA=1"
  3904. ac_sed_defs="${ac_sed_defs}\${ac_dA}C_ALLOCA\${ac_dB}C_ALLOCA\${ac_dC}1\${ac_dD}
  3905. \${ac_uA}C_ALLOCA\${ac_uB}C_ALLOCA\${ac_uC}1\${ac_uD}
  3906. \${ac_eA}C_ALLOCA\${ac_eB}C_ALLOCA\${ac_eC}1\${ac_eD}
  3907. "
  3908. }
  3909.  
  3910.  
  3911.   test -n "$silent" || echo "checking stack direction for C alloca"
  3912.   test -n "$silent" || echo "checking whether cross-compiling"
  3913. # If we cannot run a trivial program, we must be cross compiling.
  3914. cat > conftest.${ac_ext} <<EOF
  3915. #include "confdefs.h"
  3916. main(){exit(0);}
  3917. EOF
  3918. eval $ac_compile
  3919. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3920.   :
  3921. else
  3922.   cross_compiling=1
  3923. fi
  3924. rm -fr conftest*
  3925.  
  3926. if test -n "$cross_compiling"
  3927. then
  3928.   
  3929. {
  3930. test -n "$verbose" && \
  3931. echo "    defining" STACK_DIRECTION to be "0"
  3932. echo "#define" STACK_DIRECTION "0" >> confdefs.h
  3933. DEFS="$DEFS -DSTACK_DIRECTION=0"
  3934. ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}0\${ac_dD}
  3935. \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}0\${ac_uD}
  3936. \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}0\${ac_eD}
  3937. "
  3938. }
  3939.  
  3940. else
  3941. cat > conftest.${ac_ext} <<EOF
  3942. #include "confdefs.h"
  3943. find_stack_direction ()
  3944. {
  3945.   static char *addr = 0;
  3946.   auto char dummy;
  3947.   if (addr == 0)
  3948.     {
  3949.       addr = &dummy;
  3950.       return find_stack_direction ();
  3951.     }
  3952.   else
  3953.     return (&dummy > addr) ? 1 : -1;
  3954. }
  3955. main ()
  3956. {
  3957.   exit (find_stack_direction() < 0);
  3958. }
  3959. EOF
  3960. eval $ac_compile
  3961. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  3962.   
  3963. {
  3964. test -n "$verbose" && \
  3965. echo "    defining" STACK_DIRECTION to be "1"
  3966. echo "#define" STACK_DIRECTION "1" >> confdefs.h
  3967. DEFS="$DEFS -DSTACK_DIRECTION=1"
  3968. ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}1\${ac_dD}
  3969. \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}1\${ac_uD}
  3970. \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}1\${ac_eD}
  3971. "
  3972. }
  3973.  
  3974.  
  3975. else
  3976.   
  3977. {
  3978. test -n "$verbose" && \
  3979. echo "    defining" STACK_DIRECTION to be "-1"
  3980. echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  3981. DEFS="$DEFS -DSTACK_DIRECTION=-1"
  3982. ac_sed_defs="${ac_sed_defs}\${ac_dA}STACK_DIRECTION\${ac_dB}STACK_DIRECTION\${ac_dC}-1\${ac_dD}
  3983. \${ac_uA}STACK_DIRECTION\${ac_uB}STACK_DIRECTION\${ac_uC}-1\${ac_uD}
  3984. \${ac_eA}STACK_DIRECTION\${ac_eB}STACK_DIRECTION\${ac_eC}-1\${ac_eD}
  3985. "
  3986. }
  3987.  
  3988. fi
  3989. fi
  3990. rm -fr conftest*
  3991. fi
  3992.  
  3993.  
  3994. # Check whether vfork exists and works correctly. (This does more
  3995. # than just check for its existence.) If so, it defines HAVE_VFORK_H.
  3996. # If not, it defines vfork to be fork.
  3997. test -n "$silent" || echo "checking for pid_t in sys/types.h"
  3998. echo '#include "confdefs.h"
  3999. #include <sys/types.h>' > conftest.${ac_ext}
  4000. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  4001. if egrep "pid_t" conftest.out >/dev/null 2>&1; then
  4002.   :
  4003. else
  4004.   rm -rf conftest*
  4005.   
  4006. {
  4007. test -n "$verbose" && \
  4008. echo "    defining" pid_t to be "int"
  4009. echo "#define" pid_t "int" >> confdefs.h
  4010. DEFS="$DEFS -Dpid_t=int"
  4011. ac_sed_defs="${ac_sed_defs}\${ac_dA}pid_t\${ac_dB}pid_t\${ac_dC}int\${ac_dD}
  4012. \${ac_uA}pid_t\${ac_uB}pid_t\${ac_uC}int\${ac_uD}
  4013. \${ac_eA}pid_t\${ac_eB}pid_t\${ac_eC}int\${ac_eD}
  4014. "
  4015. }
  4016.  
  4017. fi
  4018. rm -f conftest*
  4019.  
  4020. test -n "$silent" || echo "checking for vfork.h"
  4021. cat > conftest.${ac_ext} <<EOF
  4022. #include "confdefs.h"
  4023. #include <vfork.h>
  4024. EOF
  4025. # Some shells (Coherent) do redirections in the wrong order, so need
  4026. # the parens.
  4027. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4028. if test -z "$ac_err"; then
  4029.   rm -rf conftest*
  4030.   
  4031. {
  4032. test -n "$verbose" && \
  4033. echo "    defining HAVE_VFORK_H"
  4034. echo "#define" HAVE_VFORK_H "1" >> confdefs.h
  4035. DEFS="$DEFS -DHAVE_VFORK_H=1"
  4036. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_VFORK_H\${ac_dB}HAVE_VFORK_H\${ac_dC}1\${ac_dD}
  4037. \${ac_uA}HAVE_VFORK_H\${ac_uB}HAVE_VFORK_H\${ac_uC}1\${ac_uD}
  4038. \${ac_eA}HAVE_VFORK_H\${ac_eB}HAVE_VFORK_H\${ac_eC}1\${ac_eD}
  4039. "
  4040. }
  4041.  
  4042.  
  4043. fi
  4044. rm -f conftest*
  4045.  
  4046. test -n "$silent" || echo "checking for working vfork"
  4047.  
  4048. cat > conftest.${ac_ext} <<EOF
  4049. #include "confdefs.h"
  4050. /* Thanks to Paul Eggert for this test.  */
  4051. #include <stdio.h>
  4052. #include <sys/types.h>
  4053. #include <sys/stat.h>
  4054. #include <signal.h>
  4055. #ifdef HAVE_UNISTD_H
  4056. #include <unistd.h>
  4057. #endif
  4058. #ifdef HAVE_VFORK_H
  4059. #include <vfork.h>
  4060. #endif
  4061. static int signalled;
  4062. static RETSIGTYPE catch (s) int s; { signalled = 1; }
  4063. main() {
  4064.   pid_t parent = getpid ();
  4065.   pid_t child;
  4066.  
  4067.   signal (SIGINT, catch);
  4068.  
  4069.   child = vfork ();
  4070.  
  4071.   if (child == 0) {
  4072.     /* On sparc systems, changes by the child to local and incoming
  4073.        argument registers are propagated back to the parent.
  4074.        The compiler is told about this with #include <vfork.h>,
  4075.        but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  4076.        Test for this by using lots of local variables, at least
  4077.        as many local variables as main has allocated so far
  4078.        including compiler temporaries.  4 locals are enough for
  4079.        gcc 1.40.3 on a sparc, but we use 8 to be safe.
  4080.        A buggy compiler should reuse the register of parent
  4081.        for one of the local variables, since it will think that
  4082.        parent can't possibly be used any more in this routine.
  4083.        Assigning to the local variable will thus munge parent
  4084.        in the parent process.  */
  4085.     pid_t
  4086.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  4087.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  4088.     /* Convince the compiler that p..p7 are live; otherwise, it might
  4089.        use the same hardware register for all 8 local variables.  */
  4090.     if (p != p1 || p != p2 || p != p3 || p != p4
  4091.     || p != p5 || p != p6 || p != p7)
  4092.       _exit(1);
  4093.  
  4094.     /* On some systems (e.g. SunOS 5.2), if the parent is catching
  4095.        a signal, the child ignores the signal before execing,
  4096.        and the parent later receives that signal, the parent dumps core.
  4097.        Test for this by ignoring SIGINT in the child.  */
  4098.     signal (SIGINT, SIG_IGN);
  4099.  
  4100.     /* On some systems (e.g. IRIX 3.3),
  4101.        vfork doesn't separate parent from child file descriptors.
  4102.        If the child closes a descriptor before it execs or exits,
  4103.        this munges the parent's descriptor as well.
  4104.        Test for this by closing stdout in the child.  */
  4105.     _exit(close(fileno(stdout)) != 0);
  4106.   } else {
  4107.     int status;
  4108.     struct stat st;
  4109.  
  4110.     while (wait(&status) != child)
  4111.       ;
  4112.     exit(
  4113.      /* Was there some problem with vforking?  */
  4114.      child < 0
  4115.  
  4116.      /* Did the child fail?  (This shouldn't happen.)  */
  4117.      || status
  4118.  
  4119.      /* Did the vfork/compiler bug occur?  */
  4120.      || parent != getpid()
  4121.  
  4122.      /* Did the signal handling bug occur?  */
  4123.      || kill(parent, SIGINT) != 0
  4124.      || signalled != 1
  4125.  
  4126.      /* Did the file descriptor bug occur?  */
  4127.      || fstat(fileno(stdout), &st) != 0
  4128.      );
  4129.   }
  4130. }
  4131. EOF
  4132. eval $ac_compile
  4133. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4134.   :
  4135. else
  4136.   
  4137. {
  4138. test -n "$verbose" && \
  4139. echo "    defining" vfork to be "fork"
  4140. echo "#define" vfork "fork" >> confdefs.h
  4141. DEFS="$DEFS -Dvfork=fork"
  4142. ac_sed_defs="${ac_sed_defs}\${ac_dA}vfork\${ac_dB}vfork\${ac_dC}fork\${ac_dD}
  4143. \${ac_uA}vfork\${ac_uB}vfork\${ac_uC}fork\${ac_uD}
  4144. \${ac_eA}vfork\${ac_eB}vfork\${ac_eC}fork\${ac_eD}
  4145. "
  4146. }
  4147.  
  4148. fi
  4149. rm -fr conftest*
  4150.  
  4151.  
  4152. # Check whether mmap exists and works correctly. (This does more
  4153. # than just check for its existence.) If so, it defines HAVE_MMAP.
  4154. # Actually, this seems to rule out some cases where mmap() can
  4155. # work fine for our purposes (e.g. HPUX).  We get a big win out
  4156. # of using mmap(), so let's go back to the old way.
  4157.  
  4158. # Check whether strcoll exists and works correctly. (This does more
  4159. # than just check for its existence.) If so, it defines HAVE_STRCOLL.
  4160. test -n "$silent" || echo "checking for strcoll"
  4161. cat > conftest.${ac_ext} <<EOF
  4162. #include "confdefs.h"
  4163. #include <string.h>
  4164. main ()
  4165. {
  4166.   exit (strcoll ("abc", "def") >= 0 ||
  4167.     strcoll ("ABC", "DEF") >= 0 ||
  4168.     strcoll ("123", "456") >= 0);
  4169. }
  4170. EOF
  4171. eval $ac_compile
  4172. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4173.   
  4174. {
  4175. test -n "$verbose" && \
  4176. echo "    defining HAVE_STRCOLL"
  4177. echo "#define" HAVE_STRCOLL "1" >> confdefs.h
  4178. DEFS="$DEFS -DHAVE_STRCOLL=1"
  4179. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_STRCOLL\${ac_dB}HAVE_STRCOLL\${ac_dC}1\${ac_dD}
  4180. \${ac_uA}HAVE_STRCOLL\${ac_uB}HAVE_STRCOLL\${ac_uC}1\${ac_uD}
  4181. \${ac_eA}HAVE_STRCOLL\${ac_eB}HAVE_STRCOLL\${ac_eC}1\${ac_eD}
  4182. "
  4183. }
  4184.  
  4185.  
  4186. fi
  4187. rm -fr conftest*
  4188.  
  4189. test -n "$silent" || echo "checking size of short"
  4190. cat > conftest.${ac_ext} <<EOF
  4191. #include "confdefs.h"
  4192. #include <stdio.h>
  4193. main()
  4194. {
  4195.   FILE *f=fopen("conftestval", "w");
  4196.   if (!f) exit(1);
  4197.   fprintf(f, "%d\n", sizeof(short));
  4198.   exit(0);
  4199. }
  4200. EOF
  4201. eval $ac_compile
  4202. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4203.   ac_size=`cat conftestval`
  4204.  
  4205. else
  4206.   echo "configure: can not determine size of short" >&2; exit 1
  4207. fi
  4208. rm -fr conftest*
  4209.  
  4210. {
  4211. test -n "$verbose" && \
  4212. echo "    defining" SIZEOF_SHORT to be "$ac_size"
  4213. echo "#define" SIZEOF_SHORT "$ac_size" >> confdefs.h
  4214. DEFS="$DEFS -DSIZEOF_SHORT=$ac_size"
  4215. ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_SHORT\${ac_dB}SIZEOF_SHORT\${ac_dC}$ac_size\${ac_dD}
  4216. \${ac_uA}SIZEOF_SHORT\${ac_uB}SIZEOF_SHORT\${ac_uC}$ac_size\${ac_uD}
  4217. \${ac_eA}SIZEOF_SHORT\${ac_eB}SIZEOF_SHORT\${ac_eC}$ac_size\${ac_eD}
  4218. "
  4219. }
  4220.  
  4221. test -n "$silent" || echo "checking size of int"
  4222. cat > conftest.${ac_ext} <<EOF
  4223. #include "confdefs.h"
  4224. #include <stdio.h>
  4225. main()
  4226. {
  4227.   FILE *f=fopen("conftestval", "w");
  4228.   if (!f) exit(1);
  4229.   fprintf(f, "%d\n", sizeof(int));
  4230.   exit(0);
  4231. }
  4232. EOF
  4233. eval $ac_compile
  4234. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4235.   ac_size=`cat conftestval`
  4236.  
  4237. else
  4238.   echo "configure: can not determine size of int" >&2; exit 1
  4239. fi
  4240. rm -fr conftest*
  4241.  
  4242. {
  4243. test -n "$verbose" && \
  4244. echo "    defining" SIZEOF_INT to be "$ac_size"
  4245. echo "#define" SIZEOF_INT "$ac_size" >> confdefs.h
  4246. DEFS="$DEFS -DSIZEOF_INT=$ac_size"
  4247. ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_INT\${ac_dB}SIZEOF_INT\${ac_dC}$ac_size\${ac_dD}
  4248. \${ac_uA}SIZEOF_INT\${ac_uB}SIZEOF_INT\${ac_uC}$ac_size\${ac_uD}
  4249. \${ac_eA}SIZEOF_INT\${ac_eB}SIZEOF_INT\${ac_eC}$ac_size\${ac_eD}
  4250. "
  4251. }
  4252.  
  4253. test -n "$silent" || echo "checking size of long"
  4254. cat > conftest.${ac_ext} <<EOF
  4255. #include "confdefs.h"
  4256. #include <stdio.h>
  4257. main()
  4258. {
  4259.   FILE *f=fopen("conftestval", "w");
  4260.   if (!f) exit(1);
  4261.   fprintf(f, "%d\n", sizeof(long));
  4262.   exit(0);
  4263. }
  4264. EOF
  4265. eval $ac_compile
  4266. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  4267.   ac_size=`cat conftestval`
  4268.  
  4269. else
  4270.   echo "configure: can not determine size of long" >&2; exit 1
  4271. fi
  4272. rm -fr conftest*
  4273.  
  4274. {
  4275. test -n "$verbose" && \
  4276. echo "    defining" SIZEOF_LONG to be "$ac_size"
  4277. echo "#define" SIZEOF_LONG "$ac_size" >> confdefs.h
  4278. DEFS="$DEFS -DSIZEOF_LONG=$ac_size"
  4279. ac_sed_defs="${ac_sed_defs}\${ac_dA}SIZEOF_LONG\${ac_dB}SIZEOF_LONG\${ac_dC}$ac_size\${ac_dD}
  4280. \${ac_uA}SIZEOF_LONG\${ac_uB}SIZEOF_LONG\${ac_uC}$ac_size\${ac_uD}
  4281. \${ac_eA}SIZEOF_LONG\${ac_eB}SIZEOF_LONG\${ac_eC}$ac_size\${ac_eD}
  4282. "
  4283. }
  4284.  
  4285.  
  4286. for ac_func in cbrt closedir dup2 fpathconf frexp gethostname getpagesize gettimeofday getwd acosh asinh atanh logb matherr mkdir perror random lrand48 realpath rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask strerror utimes waitpid
  4287. do
  4288. ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  4289. test -n "$silent" || echo "checking for ${ac_func}"
  4290. cat > conftest.${ac_ext} <<EOF
  4291. #include "confdefs.h"
  4292. #include <ctype.h>
  4293. int main() { return 0; }
  4294. int t() { 
  4295. /* The GNU C library defines this for functions which it implements
  4296.     to always fail with ENOSYS.  Some functions are actually named
  4297.     something starting with __ and the normal name is an alias.  */
  4298. #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  4299. choke me
  4300. #else
  4301. /* Override any gcc2 internal prototype to avoid an error.  */
  4302. extern char ${ac_func}(); ${ac_func}();
  4303. #endif
  4304. ; return 0; }
  4305. EOF
  4306. if eval $ac_compile; then
  4307.   rm -rf conftest*
  4308.   {
  4309. test -n "$verbose" && \
  4310. echo "    defining ${ac_tr_func}"
  4311. echo "#define" ${ac_tr_func} "1" >> confdefs.h
  4312. DEFS="$DEFS -D${ac_tr_func}=1"
  4313. ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  4314. \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  4315. \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  4316. "
  4317. }
  4318.  
  4319.  
  4320. fi
  4321. rm -f conftest*
  4322. done
  4323.  
  4324.  
  4325. # Check for mmap.
  4326. found_mmap=true
  4327. test -n "$silent" || echo "checking for mmap"
  4328. cat > conftest.${ac_ext} <<EOF
  4329. #include "confdefs.h"
  4330. #include <ctype.h>
  4331. int main() { return 0; }
  4332. int t() { 
  4333. /* The GNU C library defines this for functions which it implements
  4334.     to always fail with ENOSYS.  Some functions are actually named
  4335.     something starting with __ and the normal name is an alias.  */
  4336. #if defined (__stub_mmap) || defined (__stub___mmap)
  4337. choke me
  4338. #else
  4339. /* Override any gcc2 internal prototype to avoid an error.  */
  4340. extern char mmap(); mmap();
  4341. #endif
  4342. ; return 0; }
  4343. EOF
  4344. if eval $ac_compile; then
  4345.   :
  4346. else
  4347.   rm -rf conftest*
  4348.   found_mmap=
  4349. fi
  4350. rm -f conftest*
  4351.  
  4352. if test -n "$found_mmap"; then
  4353.   
  4354. {
  4355. test -n "$verbose" && \
  4356. echo "    defining HAVE_MMAP"
  4357. echo "#define" HAVE_MMAP "1" >> confdefs.h
  4358. DEFS="$DEFS -DHAVE_MMAP=1"
  4359. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_MMAP\${ac_dB}HAVE_MMAP\${ac_dC}1\${ac_dD}
  4360. \${ac_uA}HAVE_MMAP\${ac_uB}HAVE_MMAP\${ac_uC}1\${ac_uD}
  4361. \${ac_eA}HAVE_MMAP\${ac_eB}HAVE_MMAP\${ac_eC}1\${ac_eD}
  4362. "
  4363. }
  4364.  
  4365. fi
  4366.  
  4367.  
  4368. # rel_alloc requires either GNU malloc or system malloc with mmap
  4369. if [ "${GNU_MALLOC}" != "yes" ]; then
  4370.   if [ "${found_mmap}" != "true" ]; then
  4371.     rel_alloc=no
  4372.   fi
  4373. fi
  4374.  
  4375. # We only turn rel_alloc on by default if mmap is available.
  4376. if [ "${rel_alloc}" = "default" ]; then
  4377.   if [ "${found_mmap}" = "true" ]; then
  4378.     rel_alloc=yes
  4379.   fi
  4380. fi
  4381.  
  4382.  
  4383.  
  4384. # Check for Internet sockets.
  4385.  
  4386. ok_so_far=true
  4387. test -n "$silent" || echo "checking for socket"
  4388. cat > conftest.${ac_ext} <<EOF
  4389. #include "confdefs.h"
  4390. #include <ctype.h>
  4391. int main() { return 0; }
  4392. int t() { 
  4393. /* The GNU C library defines this for functions which it implements
  4394.     to always fail with ENOSYS.  Some functions are actually named
  4395.     something starting with __ and the normal name is an alias.  */
  4396. #if defined (__stub_socket) || defined (__stub___socket)
  4397. choke me
  4398. #else
  4399. /* Override any gcc2 internal prototype to avoid an error.  */
  4400. extern char socket(); socket();
  4401. #endif
  4402. ; return 0; }
  4403. EOF
  4404. if eval $ac_compile; then
  4405.   :
  4406. else
  4407.   rm -rf conftest*
  4408.   ok_so_far=
  4409. fi
  4410. rm -f conftest*
  4411.  
  4412. if test -n "$ok_so_far"; then
  4413.   test -n "$silent" || echo "checking for netinet/in.h"
  4414. cat > conftest.${ac_ext} <<EOF
  4415. #include "confdefs.h"
  4416. #include <netinet/in.h>
  4417. EOF
  4418. # Some shells (Coherent) do redirections in the wrong order, so need
  4419. # the parens.
  4420. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4421. if test -z "$ac_err"; then
  4422.   :
  4423. else
  4424.   rm -rf conftest*
  4425.   ok_so_far=
  4426. fi
  4427. rm -f conftest*
  4428.  
  4429. fi
  4430. if test -n "$ok_so_far"; then
  4431.   test -n "$silent" || echo "checking for arpa/inet.h"
  4432. cat > conftest.${ac_ext} <<EOF
  4433. #include "confdefs.h"
  4434. #include <arpa/inet.h>
  4435. EOF
  4436. # Some shells (Coherent) do redirections in the wrong order, so need
  4437. # the parens.
  4438. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4439. if test -z "$ac_err"; then
  4440.   :
  4441. else
  4442.   rm -rf conftest*
  4443.   ok_so_far=
  4444. fi
  4445. rm -f conftest*
  4446.  
  4447. fi
  4448. if test -n "$ok_so_far"; then
  4449.   
  4450. {
  4451. test -n "$verbose" && \
  4452. echo "    defining HAVE_SOCKETS"
  4453. echo "#define" HAVE_SOCKETS "1" >> confdefs.h
  4454. DEFS="$DEFS -DHAVE_SOCKETS=1"
  4455. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKETS\${ac_dB}HAVE_SOCKETS\${ac_dC}1\${ac_dD}
  4456. \${ac_uA}HAVE_SOCKETS\${ac_uB}HAVE_SOCKETS\${ac_uC}1\${ac_uD}
  4457. \${ac_eA}HAVE_SOCKETS\${ac_eB}HAVE_SOCKETS\${ac_eC}1\${ac_eD}
  4458. "
  4459. }
  4460.  
  4461. fi
  4462.  
  4463. # Check for SYS V IPC. (Inferior to sockets.)
  4464.  
  4465. if test -z "$ok_so_far"; then
  4466.   ok_so_far=true
  4467.   test -n "$silent" || echo "checking for msgget"
  4468. cat > conftest.${ac_ext} <<EOF
  4469. #include "confdefs.h"
  4470. #include <ctype.h>
  4471. int main() { return 0; }
  4472. int t() { 
  4473. /* The GNU C library defines this for functions which it implements
  4474.     to always fail with ENOSYS.  Some functions are actually named
  4475.     something starting with __ and the normal name is an alias.  */
  4476. #if defined (__stub_msgget) || defined (__stub___msgget)
  4477. choke me
  4478. #else
  4479. /* Override any gcc2 internal prototype to avoid an error.  */
  4480. extern char msgget(); msgget();
  4481. #endif
  4482. ; return 0; }
  4483. EOF
  4484. if eval $ac_compile; then
  4485.   :
  4486. else
  4487.   rm -rf conftest*
  4488.   ok_so_far=
  4489. fi
  4490. rm -f conftest*
  4491.  
  4492.   if test -n "$ok_so_far"; then
  4493.     test -n "$silent" || echo "checking for sys/ipc.h"
  4494. cat > conftest.${ac_ext} <<EOF
  4495. #include "confdefs.h"
  4496. #include <sys/ipc.h>
  4497. EOF
  4498. # Some shells (Coherent) do redirections in the wrong order, so need
  4499. # the parens.
  4500. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4501. if test -z "$ac_err"; then
  4502.   :
  4503. else
  4504.   rm -rf conftest*
  4505.   ok_so_far=
  4506. fi
  4507. rm -f conftest*
  4508.  
  4509.   fi
  4510.   if test -n "$ok_so_far"; then
  4511.     test -n "$silent" || echo "checking for sys/msg.h"
  4512. cat > conftest.${ac_ext} <<EOF
  4513. #include "confdefs.h"
  4514. #include <sys/msg.h>
  4515. EOF
  4516. # Some shells (Coherent) do redirections in the wrong order, so need
  4517. # the parens.
  4518. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4519. if test -z "$ac_err"; then
  4520.   :
  4521. else
  4522.   rm -rf conftest*
  4523.   ok_so_far=
  4524. fi
  4525. rm -f conftest*
  4526.  
  4527.   fi
  4528.   if test -n "$ok_so_far"; then
  4529.     
  4530. {
  4531. test -n "$verbose" && \
  4532. echo "    defining HAVE_SYSVIPC"
  4533. echo "#define" HAVE_SYSVIPC "1" >> confdefs.h
  4534. DEFS="$DEFS -DHAVE_SYSVIPC=1"
  4535. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SYSVIPC\${ac_dB}HAVE_SYSVIPC\${ac_dC}1\${ac_dD}
  4536. \${ac_uA}HAVE_SYSVIPC\${ac_uB}HAVE_SYSVIPC\${ac_uC}1\${ac_uD}
  4537. \${ac_eA}HAVE_SYSVIPC\${ac_eB}HAVE_SYSVIPC\${ac_eC}1\${ac_eD}
  4538. "
  4539. }
  4540.  
  4541.   fi
  4542. fi
  4543.  
  4544. # Check for directory variants
  4545.  
  4546. sysv_system_dir=
  4547. nonsystem_dir_library=
  4548. test -n "$silent" || echo "checking for dirent.h"
  4549. cat > conftest.${ac_ext} <<EOF
  4550. #include "confdefs.h"
  4551. #include <dirent.h>
  4552. EOF
  4553. # Some shells (Coherent) do redirections in the wrong order, so need
  4554. # the parens.
  4555. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4556. if test -z "$ac_err"; then
  4557.   rm -rf conftest*
  4558.   sysv_system_dir=yes
  4559.  
  4560. fi
  4561. rm -f conftest*
  4562.  
  4563. if test -z "$sysv_system_dir" ; then
  4564.   test -n "$silent" || echo "checking for sys/dir.h"
  4565. cat > conftest.${ac_ext} <<EOF
  4566. #include "confdefs.h"
  4567. #include <sys/dir.h>
  4568. EOF
  4569. # Some shells (Coherent) do redirections in the wrong order, so need
  4570. # the parens.
  4571. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4572. if test -z "$ac_err"; then
  4573.   :
  4574. else
  4575.   rm -rf conftest*
  4576.   nonsystem_dir_library=yes
  4577. fi
  4578. rm -f conftest*
  4579.  
  4580. fi
  4581. if test -n "$sysv_system_dir" ; then
  4582.   
  4583. {
  4584. test -n "$verbose" && \
  4585. echo "    defining SYSV_SYSTEM_DIR"
  4586. echo "#define" SYSV_SYSTEM_DIR "1" >> confdefs.h
  4587. DEFS="$DEFS -DSYSV_SYSTEM_DIR=1"
  4588. ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSV_SYSTEM_DIR\${ac_dB}SYSV_SYSTEM_DIR\${ac_dC}1\${ac_dD}
  4589. \${ac_uA}SYSV_SYSTEM_DIR\${ac_uB}SYSV_SYSTEM_DIR\${ac_uC}1\${ac_uD}
  4590. \${ac_eA}SYSV_SYSTEM_DIR\${ac_eB}SYSV_SYSTEM_DIR\${ac_eC}1\${ac_eD}
  4591. "
  4592. }
  4593.  
  4594. elif test -n "$nonsystem_dir_library" ; then
  4595.   
  4596. {
  4597. test -n "$verbose" && \
  4598. echo "    defining NONSYSTEM_DIR_LIBRARY"
  4599. echo "#define" NONSYSTEM_DIR_LIBRARY "1" >> confdefs.h
  4600. DEFS="$DEFS -DNONSYSTEM_DIR_LIBRARY=1"
  4601. ac_sed_defs="${ac_sed_defs}\${ac_dA}NONSYSTEM_DIR_LIBRARY\${ac_dB}NONSYSTEM_DIR_LIBRARY\${ac_dC}1\${ac_dD}
  4602. \${ac_uA}NONSYSTEM_DIR_LIBRARY\${ac_uB}NONSYSTEM_DIR_LIBRARY\${ac_uC}1\${ac_uD}
  4603. \${ac_eA}NONSYSTEM_DIR_LIBRARY\${ac_eB}NONSYSTEM_DIR_LIBRARY\${ac_eC}1\${ac_eD}
  4604. "
  4605. }
  4606.  
  4607. fi
  4608.  
  4609. # Check for terminal I/O variants
  4610.  
  4611. echo "checking how to do terminal I/O"
  4612.  
  4613. have_termios=
  4614. have_termio=
  4615. test -n "$silent" || echo "checking for termios.h"
  4616. cat > conftest.${ac_ext} <<EOF
  4617. #include "confdefs.h"
  4618. #include <termios.h>
  4619. EOF
  4620. # Some shells (Coherent) do redirections in the wrong order, so need
  4621. # the parens.
  4622. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4623. if test -z "$ac_err"; then
  4624.   rm -rf conftest*
  4625.   have_termios=yes
  4626.  
  4627. fi
  4628. rm -f conftest*
  4629.  
  4630. # TERMIOS systems may have termio.h, but not vice-versa, I think.
  4631. if test -z "$have_termios" ; then
  4632.   test -n "$silent" || echo "checking for termio.h"
  4633. cat > conftest.${ac_ext} <<EOF
  4634. #include "confdefs.h"
  4635. #include <termio.h>
  4636. EOF
  4637. # Some shells (Coherent) do redirections in the wrong order, so need
  4638. # the parens.
  4639. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4640. if test -z "$ac_err"; then
  4641.   rm -rf conftest*
  4642.   have_termio=yes
  4643.  
  4644. fi
  4645. rm -f conftest*
  4646.  
  4647. fi
  4648. if test -n "$have_termios" ; then
  4649.   
  4650. {
  4651. test -n "$verbose" && \
  4652. echo "    defining HAVE_TERMIOS"
  4653. echo "#define" HAVE_TERMIOS "1" >> confdefs.h
  4654. DEFS="$DEFS -DHAVE_TERMIOS=1"
  4655. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIOS\${ac_dB}HAVE_TERMIOS\${ac_dC}1\${ac_dD}
  4656. \${ac_uA}HAVE_TERMIOS\${ac_uB}HAVE_TERMIOS\${ac_uC}1\${ac_uD}
  4657. \${ac_eA}HAVE_TERMIOS\${ac_eB}HAVE_TERMIOS\${ac_eC}1\${ac_eD}
  4658. "
  4659. }
  4660.  
  4661. elif test -n "$have_termio" ; then
  4662.   
  4663. {
  4664. test -n "$verbose" && \
  4665. echo "    defining HAVE_TERMIO"
  4666. echo "#define" HAVE_TERMIO "1" >> confdefs.h
  4667. DEFS="$DEFS -DHAVE_TERMIO=1"
  4668. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_TERMIO\${ac_dB}HAVE_TERMIO\${ac_dC}1\${ac_dD}
  4669. \${ac_uA}HAVE_TERMIO\${ac_uB}HAVE_TERMIO\${ac_uC}1\${ac_uD}
  4670. \${ac_eA}HAVE_TERMIO\${ac_eB}HAVE_TERMIO\${ac_eC}1\${ac_eD}
  4671. "
  4672. }
  4673.  
  4674. fi
  4675.  
  4676. # Check for nlist.h
  4677. test -n "$silent" || echo "checking for nlist.h"
  4678. cat > conftest.${ac_ext} <<EOF
  4679. #include "confdefs.h"
  4680. #include <nlist.h>
  4681. EOF
  4682. # Some shells (Coherent) do redirections in the wrong order, so need
  4683. # the parens.
  4684. ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4685. if test -z "$ac_err"; then
  4686.   rm -rf conftest*
  4687.   
  4688. {
  4689. test -n "$verbose" && \
  4690. echo "    defining NLIST_STRUCT"
  4691. echo "#define" NLIST_STRUCT "1" >> confdefs.h
  4692. DEFS="$DEFS -DNLIST_STRUCT=1"
  4693. ac_sed_defs="${ac_sed_defs}\${ac_dA}NLIST_STRUCT\${ac_dB}NLIST_STRUCT\${ac_dC}1\${ac_dD}
  4694. \${ac_uA}NLIST_STRUCT\${ac_uB}NLIST_STRUCT\${ac_uC}1\${ac_uD}
  4695. \${ac_eA}NLIST_STRUCT\${ac_eB}NLIST_STRUCT\${ac_eC}1\${ac_eD}
  4696. "
  4697. }
  4698.  
  4699.  
  4700. fi
  4701. rm -f conftest*
  4702.  
  4703.  
  4704. # Set up the CFLAGS for real compilation, so we can substitute it.
  4705. CFLAGS="$REAL_CFLAGS"
  4706.  
  4707.  
  4708. #### Find out which version of XEmacs this is.
  4709. version=`grep 'defconst[     ]*emacs-version' ${srcdir}/lisp/version.el \
  4710.      | sed -ne 's/^(defconst emacs-version "\([0-9][0-9]\.[0-9]*\).*/\1/p'`
  4711. beta=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
  4712.       | sed -ne 's/^.*" XEmacs Lucid (beta\([^)]*\)).*/\1/p'`
  4713. alpha=`grep '" XEmacs Lucid' ${srcdir}/lisp/version.el \
  4714.        | sed -ne 's/^.*" XEmacs Lucid (alpha\([^)]*\)).*/\1/p'`
  4715. if [ "X$beta" != "X" ]; then
  4716.   version=${version}-b${beta}
  4717. fi
  4718. if [ "X$alpha" != "X" ]; then
  4719.   version=${version}-a${alpha}
  4720. fi
  4721. if [ x"${version}" = x ]; then
  4722.   echo "${progname}: can't find current emacs version in
  4723.     \`${srcdir}/lisp/version.el'." >&2
  4724.   exit 1
  4725. fi
  4726.  
  4727. if [ -f /usr/lpp/X11/bin/smt.exp ]; then
  4728.   
  4729.   
  4730. {
  4731. test -n "$verbose" && \
  4732. echo "    defining" AIX_SMT_EXP to be "/usr/lpp/X11/bin/smt.exp"
  4733. echo "#define" AIX_SMT_EXP "/usr/lpp/X11/bin/smt.exp" >> confdefs.h
  4734. DEFS="$DEFS -DAIX_SMT_EXP=/usr/lpp/X11/bin/smt.exp"
  4735. ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}/usr/lpp/X11/bin/smt.exp\${ac_dD}
  4736. \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}/usr/lpp/X11/bin/smt.exp\${ac_uD}
  4737. \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}/usr/lpp/X11/bin/smt.exp\${ac_eD}
  4738. "
  4739. }
  4740.  
  4741.   
  4742. elif [ -f /usr/bin/X11/smt.exp ]; then
  4743.   
  4744.   
  4745. {
  4746. test -n "$verbose" && \
  4747. echo "    defining" AIX_SMT_EXP to be "/usr/bin/X11/smt.exp"
  4748. echo "#define" AIX_SMT_EXP "/usr/bin/X11/smt.exp" >> confdefs.h
  4749. DEFS="$DEFS -DAIX_SMT_EXP=/usr/bin/X11/smt.exp"
  4750. ac_sed_defs="${ac_sed_defs}\${ac_dA}AIX_SMT_EXP\${ac_dB}AIX_SMT_EXP\${ac_dC}/usr/bin/X11/smt.exp\${ac_dD}
  4751. \${ac_uA}AIX_SMT_EXP\${ac_uB}AIX_SMT_EXP\${ac_uC}/usr/bin/X11/smt.exp\${ac_uD}
  4752. \${ac_eA}AIX_SMT_EXP\${ac_eB}AIX_SMT_EXP\${ac_eC}/usr/bin/X11/smt.exp\${ac_eD}
  4753. "
  4754. }
  4755.  
  4756.   
  4757. fi
  4758.  
  4759. # the following needs to be fixed for SGI.
  4760. if [ -z "${native_sound_lib}" ]; then
  4761.   case "${canonical}" in
  4762.     *-sun-sunos* | *-sun-bsd* )
  4763.     native_sound_lib=/usr/demo/SOUND/libaudio.a ;;
  4764.     *-sun-solaris* | *-sun-sunos5* )
  4765.     native_sound_lib=/usr/demo/SOUND/lib/libaudio.a ;;
  4766.     *-sgi-* )
  4767.     native_sound_lib=-laudio ;;
  4768.     hppa*-hp-hpux* )
  4769.     native_sound_lib=-lAlib ;;
  4770.   esac
  4771. fi
  4772.  
  4773. if [ "${with_sound}" != "native" ] && [ "${with_sound}" != "nas" ] && [ "${with_sound}" != "both" ] && [ "${with_sound}" != "no" ] ; then
  4774.   case "${canonical}" in
  4775.     *-sun-sunos* | *-sun-bsd* )
  4776.       if [ -d /usr/demo/SOUND/multimedia ]; then
  4777.         with_sound="native"
  4778.       fi
  4779.     ;;
  4780.     *-sun-solaris* | *-sun-sunos5* )
  4781.       if [ -d /usr/demo/SOUND/include/multimedia ]; then
  4782.         with_sound="native"
  4783.       fi
  4784.     ;;
  4785.     *-sgi-* )
  4786.        ac_save_LIBS="${LIBS}"
  4787. LIBS="${LIBS} -laudio"
  4788. ac_have_lib=""
  4789. test -n "$silent" || echo "checking for -laudio"
  4790. cat > conftest.${ac_ext} <<EOF
  4791. #include "confdefs.h"
  4792.  
  4793. int main() { return 0; }
  4794. int t() { main();; return 0; }
  4795. EOF
  4796. if eval $ac_compile; then
  4797.   rm -rf conftest*
  4798.   ac_have_lib="1"
  4799.  
  4800. fi
  4801. rm -f conftest*
  4802. LIBS="${ac_save_LIBS}"
  4803. if test -n "${ac_have_lib}"; then
  4804.    :; with_sound="native"
  4805. else
  4806.    :; 
  4807. fi
  4808.  
  4809.     ;;
  4810.     hppa*-hp-hpux* )
  4811.        ac_save_LIBS="${LIBS}"
  4812. LIBS="${LIBS} -lAlib"
  4813. ac_have_lib=""
  4814. test -n "$silent" || echo "checking for -lAlib"
  4815. cat > conftest.${ac_ext} <<EOF
  4816. #include "confdefs.h"
  4817.  
  4818. int main() { return 0; }
  4819. int t() { main();; return 0; }
  4820. EOF
  4821. if eval $ac_compile; then
  4822.   rm -rf conftest*
  4823.   ac_have_lib="1"
  4824.  
  4825. fi
  4826. rm -f conftest*
  4827. LIBS="${ac_save_LIBS}"
  4828. if test -n "${ac_have_lib}"; then
  4829.    :; with_sound="native"
  4830. else
  4831.    :; 
  4832. fi
  4833.  
  4834.     ;;
  4835.   esac
  4836. fi
  4837.  
  4838. #### If the nas library doesn't contain the error jump point, then
  4839. #### we force safer behaviour.
  4840.  
  4841. if [ "${with_sound}" = "nas" ] || [ "${with_sound}" = "both" ] ;    then
  4842.      echo '#include "confdefs.h"
  4843. #include <audio/Xtutil.h>' > conftest.${ac_ext}
  4844. eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  4845. if egrep "AuXtErrorJump" conftest.out >/dev/null 2>&1; then
  4846.   :
  4847. else
  4848.   rm -rf conftest*
  4849.   old_nas=true
  4850. fi
  4851. rm -f conftest*
  4852.  
  4853. fi
  4854.  
  4855. if [ "${with_tooltalk}" = "yes" ]; then
  4856.   for arg in ${DEFS} "-I/usr/include" "-I/usr/openwin/include"
  4857.   do
  4858.     if [ -f `echo "${arg}/desktop/tt_c.h" | sed 's/^\-I//'` ]; then
  4859.       C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}/desktop"
  4860.     fi
  4861.   done
  4862.  
  4863.   for arg in ${LIBS} "-L/usr/lib" "-L/usr/openwin/lib"
  4864.   do
  4865.     case "${arg}" in
  4866.     -L*) if [ -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ]; then
  4867.          dash_r=''
  4868.          if [ -n "${add_runtime_flag}" ]; then
  4869.              dash_r=`echo ${arg} | sed "s/^-L/-R${dash_r_space}/"`
  4870.          fi
  4871.          LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
  4872.          fi
  4873.          ;;
  4874.     esac
  4875.   done
  4876. fi
  4877.  
  4878. #### Specify what sort of things we'll be editing into Makefile and config.h.
  4879. ### Use configuration here uncanonicalized to avoid exceeding size limits.
  4880.  
  4881.  
  4882.  
  4883.  
  4884.  
  4885.  
  4886.  
  4887.  
  4888.  
  4889.  
  4890.  
  4891.  
  4892.  
  4893.  
  4894.  
  4895.  
  4896.  
  4897.  
  4898.  
  4899.  
  4900.  
  4901.  
  4902.  
  4903.  
  4904.  
  4905.  
  4906.  
  4907.  
  4908.  
  4909.  
  4910.  
  4911.  
  4912.  
  4913. {
  4914. test -n "$verbose" && \
  4915. echo "    defining" EMACS_CONFIGURATION to be ""\"${configuration}\"""
  4916. echo "#define" EMACS_CONFIGURATION ""\"${configuration}\""" >> confdefs.h
  4917. DEFS="$DEFS -DEMACS_CONFIGURATION="\"${configuration}\"""
  4918. ac_sed_defs="${ac_sed_defs}\${ac_dA}EMACS_CONFIGURATION\${ac_dB}EMACS_CONFIGURATION\${ac_dC}"\"${configuration}\""\${ac_dD}
  4919. \${ac_uA}EMACS_CONFIGURATION\${ac_uB}EMACS_CONFIGURATION\${ac_uC}"\"${configuration}\""\${ac_uD}
  4920. \${ac_eA}EMACS_CONFIGURATION\${ac_eB}EMACS_CONFIGURATION\${ac_eC}"\"${configuration}\""\${ac_eD}
  4921. "
  4922. }
  4923.  
  4924.  
  4925. {
  4926. test -n "$verbose" && \
  4927. echo "    defining" config_machfile to be ""\"${machfile}\"""
  4928. echo "#define" config_machfile ""\"${machfile}\""" >> confdefs.h
  4929. DEFS="$DEFS -Dconfig_machfile="\"${machfile}\"""
  4930. ac_sed_defs="${ac_sed_defs}\${ac_dA}config_machfile\${ac_dB}config_machfile\${ac_dC}"\"${machfile}\""\${ac_dD}
  4931. \${ac_uA}config_machfile\${ac_uB}config_machfile\${ac_uC}"\"${machfile}\""\${ac_uD}
  4932. \${ac_eA}config_machfile\${ac_eB}config_machfile\${ac_eC}"\"${machfile}\""\${ac_eD}
  4933. "
  4934. }
  4935.  
  4936.  
  4937. {
  4938. test -n "$verbose" && \
  4939. echo "    defining" config_opsysfile to be ""\"${opsysfile}\"""
  4940. echo "#define" config_opsysfile ""\"${opsysfile}\""" >> confdefs.h
  4941. DEFS="$DEFS -Dconfig_opsysfile="\"${opsysfile}\"""
  4942. ac_sed_defs="${ac_sed_defs}\${ac_dA}config_opsysfile\${ac_dB}config_opsysfile\${ac_dC}"\"${opsysfile}\""\${ac_dD}
  4943. \${ac_uA}config_opsysfile\${ac_uB}config_opsysfile\${ac_uC}"\"${opsysfile}\""\${ac_uD}
  4944. \${ac_eA}config_opsysfile\${ac_eB}config_opsysfile\${ac_eC}"\"${opsysfile}\""\${ac_eD}
  4945. "
  4946. }
  4947.  
  4948.  
  4949. {
  4950. test -n "$verbose" && \
  4951. echo "    defining" LD_SWITCH_X_SITE to be "${LD_SWITCH_X_SITE}"
  4952. echo "#define" LD_SWITCH_X_SITE "${LD_SWITCH_X_SITE}" >> confdefs.h
  4953. DEFS="$DEFS -DLD_SWITCH_X_SITE=${LD_SWITCH_X_SITE}"
  4954. ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE\${ac_dB}LD_SWITCH_X_SITE\${ac_dC}${LD_SWITCH_X_SITE}\${ac_dD}
  4955. \${ac_uA}LD_SWITCH_X_SITE\${ac_uB}LD_SWITCH_X_SITE\${ac_uC}${LD_SWITCH_X_SITE}\${ac_uD}
  4956. \${ac_eA}LD_SWITCH_X_SITE\${ac_eB}LD_SWITCH_X_SITE\${ac_eC}${LD_SWITCH_X_SITE}\${ac_eD}
  4957. "
  4958. }
  4959.  
  4960.  
  4961. {
  4962. test -n "$verbose" && \
  4963. echo "    defining" LD_SWITCH_X_SITE_AUX to be "${LD_SWITCH_X_SITE_AUX}"
  4964. echo "#define" LD_SWITCH_X_SITE_AUX "${LD_SWITCH_X_SITE_AUX}" >> confdefs.h
  4965. DEFS="$DEFS -DLD_SWITCH_X_SITE_AUX=${LD_SWITCH_X_SITE_AUX}"
  4966. ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_X_SITE_AUX\${ac_dB}LD_SWITCH_X_SITE_AUX\${ac_dC}${LD_SWITCH_X_SITE_AUX}\${ac_dD}
  4967. \${ac_uA}LD_SWITCH_X_SITE_AUX\${ac_uB}LD_SWITCH_X_SITE_AUX\${ac_uC}${LD_SWITCH_X_SITE_AUX}\${ac_uD}
  4968. \${ac_eA}LD_SWITCH_X_SITE_AUX\${ac_eB}LD_SWITCH_X_SITE_AUX\${ac_eC}${LD_SWITCH_X_SITE_AUX}\${ac_eD}
  4969. "
  4970. }
  4971.  
  4972.  
  4973. {
  4974. test -n "$verbose" && \
  4975. echo "    defining" C_SWITCH_X_SITE to be "${C_SWITCH_X_SITE}"
  4976. echo "#define" C_SWITCH_X_SITE "${C_SWITCH_X_SITE}" >> confdefs.h
  4977. DEFS="$DEFS -DC_SWITCH_X_SITE=${C_SWITCH_X_SITE}"
  4978. ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_X_SITE\${ac_dB}C_SWITCH_X_SITE\${ac_dC}${C_SWITCH_X_SITE}\${ac_dD}
  4979. \${ac_uA}C_SWITCH_X_SITE\${ac_uB}C_SWITCH_X_SITE\${ac_uC}${C_SWITCH_X_SITE}\${ac_uD}
  4980. \${ac_eA}C_SWITCH_X_SITE\${ac_eB}C_SWITCH_X_SITE\${ac_eC}${C_SWITCH_X_SITE}\${ac_eD}
  4981. "
  4982. }
  4983.  
  4984.  
  4985. {
  4986. test -n "$verbose" && \
  4987. echo "    defining" LD_SWITCH_SITE to be "${LD_SWITCH_SITE}"
  4988. echo "#define" LD_SWITCH_SITE "${LD_SWITCH_SITE}" >> confdefs.h
  4989. DEFS="$DEFS -DLD_SWITCH_SITE=${LD_SWITCH_SITE}"
  4990. ac_sed_defs="${ac_sed_defs}\${ac_dA}LD_SWITCH_SITE\${ac_dB}LD_SWITCH_SITE\${ac_dC}${LD_SWITCH_SITE}\${ac_dD}
  4991. \${ac_uA}LD_SWITCH_SITE\${ac_uB}LD_SWITCH_SITE\${ac_uC}${LD_SWITCH_SITE}\${ac_uD}
  4992. \${ac_eA}LD_SWITCH_SITE\${ac_eB}LD_SWITCH_SITE\${ac_eC}${LD_SWITCH_SITE}\${ac_eD}
  4993. "
  4994. }
  4995.  
  4996.  
  4997. {
  4998. test -n "$verbose" && \
  4999. echo "    defining" C_SWITCH_SITE to be "${C_SWITCH_SITE}"
  5000. echo "#define" C_SWITCH_SITE "${C_SWITCH_SITE}" >> confdefs.h
  5001. DEFS="$DEFS -DC_SWITCH_SITE=${C_SWITCH_SITE}"
  5002. ac_sed_defs="${ac_sed_defs}\${ac_dA}C_SWITCH_SITE\${ac_dB}C_SWITCH_SITE\${ac_dC}${C_SWITCH_SITE}\${ac_dD}
  5003. \${ac_uA}C_SWITCH_SITE\${ac_uB}C_SWITCH_SITE\${ac_uC}${C_SWITCH_SITE}\${ac_uD}
  5004. \${ac_eA}C_SWITCH_SITE\${ac_eB}C_SWITCH_SITE\${ac_eC}${C_SWITCH_SITE}\${ac_eD}
  5005. "
  5006. }
  5007.  
  5008.  
  5009. {
  5010. test -n "$verbose" && \
  5011. echo "    defining" UNEXEC_SRC to be "${UNEXEC_SRC}"
  5012. echo "#define" UNEXEC_SRC "${UNEXEC_SRC}" >> confdefs.h
  5013. DEFS="$DEFS -DUNEXEC_SRC=${UNEXEC_SRC}"
  5014. ac_sed_defs="${ac_sed_defs}\${ac_dA}UNEXEC_SRC\${ac_dB}UNEXEC_SRC\${ac_dC}${UNEXEC_SRC}\${ac_dD}
  5015. \${ac_uA}UNEXEC_SRC\${ac_uB}UNEXEC_SRC\${ac_uC}${UNEXEC_SRC}\${ac_uD}
  5016. \${ac_eA}UNEXEC_SRC\${ac_eB}UNEXEC_SRC\${ac_eC}${UNEXEC_SRC}\${ac_eD}
  5017. "
  5018. }
  5019.  
  5020.  
  5021.  
  5022. if [ x"${puresize}" != x ] ; then
  5023.    
  5024. {
  5025. test -n "$verbose" && \
  5026. echo "    defining" PURESIZE to be "${puresize}"
  5027. echo "#define" PURESIZE "${puresize}" >> confdefs.h
  5028. DEFS="$DEFS -DPURESIZE=${puresize}"
  5029. ac_sed_defs="${ac_sed_defs}\${ac_dA}PURESIZE\${ac_dB}PURESIZE\${ac_dC}${puresize}\${ac_dD}
  5030. \${ac_uA}PURESIZE\${ac_uB}PURESIZE\${ac_uC}${puresize}\${ac_uD}
  5031. \${ac_eA}PURESIZE\${ac_eB}PURESIZE\${ac_eC}${puresize}\${ac_eD}
  5032. "
  5033. }
  5034.  
  5035. fi
  5036. if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
  5037.    
  5038. {
  5039. test -n "$verbose" && \
  5040. echo "    defining HAVE_X_WINDOWS"
  5041. echo "#define" HAVE_X_WINDOWS "1" >> confdefs.h
  5042. DEFS="$DEFS -DHAVE_X_WINDOWS=1"
  5043. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_X_WINDOWS\${ac_dB}HAVE_X_WINDOWS\${ac_dC}1\${ac_dD}
  5044. \${ac_uA}HAVE_X_WINDOWS\${ac_uB}HAVE_X_WINDOWS\${ac_uC}1\${ac_uD}
  5045. \${ac_eA}HAVE_X_WINDOWS\${ac_eB}HAVE_X_WINDOWS\${ac_eC}1\${ac_eD}
  5046. "
  5047. }
  5048.  
  5049. fi
  5050. if [ "${HAVE_XFREE386}" = "yes" ] ; then
  5051.    
  5052. {
  5053. test -n "$verbose" && \
  5054. echo "    defining HAVE_XFREE386"
  5055. echo "#define" HAVE_XFREE386 "1" >> confdefs.h
  5056. DEFS="$DEFS -DHAVE_XFREE386=1"
  5057. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFREE386\${ac_dB}HAVE_XFREE386\${ac_dC}1\${ac_dD}
  5058. \${ac_uA}HAVE_XFREE386\${ac_uB}HAVE_XFREE386\${ac_uC}1\${ac_uD}
  5059. \${ac_eA}HAVE_XFREE386\${ac_eB}HAVE_XFREE386\${ac_eC}1\${ac_eD}
  5060. "
  5061. }
  5062.  
  5063. fi
  5064. if [ "${GNU_MALLOC}" = "yes" ] ; then
  5065.    
  5066. {
  5067. test -n "$verbose" && \
  5068. echo "    defining GNU_MALLOC"
  5069. echo "#define" GNU_MALLOC "1" >> confdefs.h
  5070. DEFS="$DEFS -DGNU_MALLOC=1"
  5071. ac_sed_defs="${ac_sed_defs}\${ac_dA}GNU_MALLOC\${ac_dB}GNU_MALLOC\${ac_dC}1\${ac_dD}
  5072. \${ac_uA}GNU_MALLOC\${ac_uB}GNU_MALLOC\${ac_uC}1\${ac_uD}
  5073. \${ac_eA}GNU_MALLOC\${ac_eB}GNU_MALLOC\${ac_eC}1\${ac_eD}
  5074. "
  5075. }
  5076.  
  5077. fi
  5078. if [ "${rel_alloc}" = "yes" ] ; then
  5079.    
  5080. {
  5081. test -n "$verbose" && \
  5082. echo "    defining REL_ALLOC"
  5083. echo "#define" REL_ALLOC "1" >> confdefs.h
  5084. DEFS="$DEFS -DREL_ALLOC=1"
  5085. ac_sed_defs="${ac_sed_defs}\${ac_dA}REL_ALLOC\${ac_dB}REL_ALLOC\${ac_dC}1\${ac_dD}
  5086. \${ac_uA}REL_ALLOC\${ac_uB}REL_ALLOC\${ac_uC}1\${ac_uD}
  5087. \${ac_eA}REL_ALLOC\${ac_eB}REL_ALLOC\${ac_eC}1\${ac_eD}
  5088. "
  5089. }
  5090.  
  5091. fi
  5092. if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
  5093.    
  5094. {
  5095. test -n "$verbose" && \
  5096. echo "    defining LISP_FLOAT_TYPE"
  5097. echo "#define" LISP_FLOAT_TYPE "1" >> confdefs.h
  5098. DEFS="$DEFS -DLISP_FLOAT_TYPE=1"
  5099. ac_sed_defs="${ac_sed_defs}\${ac_dA}LISP_FLOAT_TYPE\${ac_dB}LISP_FLOAT_TYPE\${ac_dC}1\${ac_dD}
  5100. \${ac_uA}LISP_FLOAT_TYPE\${ac_uB}LISP_FLOAT_TYPE\${ac_uC}1\${ac_uD}
  5101. \${ac_eA}LISP_FLOAT_TYPE\${ac_eB}LISP_FLOAT_TYPE\${ac_eC}1\${ac_eD}
  5102. "
  5103. }
  5104.  
  5105. fi
  5106. if [ "${with_motif}" = "yes" ] ; then
  5107.    
  5108. {
  5109. test -n "$verbose" && \
  5110. echo "    defining LWLIB_USES_MOTIF"
  5111. echo "#define" LWLIB_USES_MOTIF "1" >> confdefs.h
  5112. DEFS="$DEFS -DLWLIB_USES_MOTIF=1"
  5113. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_USES_MOTIF\${ac_dB}LWLIB_USES_MOTIF\${ac_dC}1\${ac_dD}
  5114. \${ac_uA}LWLIB_USES_MOTIF\${ac_uB}LWLIB_USES_MOTIF\${ac_uC}1\${ac_uD}
  5115. \${ac_eA}LWLIB_USES_MOTIF\${ac_eB}LWLIB_USES_MOTIF\${ac_eC}1\${ac_eD}
  5116. "
  5117. }
  5118.  
  5119. fi
  5120. if [ "${with_menubars}" = "lucid" ] ; then
  5121.    
  5122. {
  5123. test -n "$verbose" && \
  5124. echo "    defining LWLIB_MENUBARS_LUCID"
  5125. echo "#define" LWLIB_MENUBARS_LUCID "1" >> confdefs.h
  5126. DEFS="$DEFS -DLWLIB_MENUBARS_LUCID=1"
  5127. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_LUCID\${ac_dB}LWLIB_MENUBARS_LUCID\${ac_dC}1\${ac_dD}
  5128. \${ac_uA}LWLIB_MENUBARS_LUCID\${ac_uB}LWLIB_MENUBARS_LUCID\${ac_uC}1\${ac_uD}
  5129. \${ac_eA}LWLIB_MENUBARS_LUCID\${ac_eB}LWLIB_MENUBARS_LUCID\${ac_eC}1\${ac_eD}
  5130. "
  5131. }
  5132.  
  5133. fi
  5134. if [ "${with_menubars}" = "motif" ]; then
  5135.    
  5136. {
  5137. test -n "$verbose" && \
  5138. echo "    defining LWLIB_MENUBARS_MOTIF"
  5139. echo "#define" LWLIB_MENUBARS_MOTIF "1" >> confdefs.h
  5140. DEFS="$DEFS -DLWLIB_MENUBARS_MOTIF=1"
  5141. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_MENUBARS_MOTIF\${ac_dB}LWLIB_MENUBARS_MOTIF\${ac_dC}1\${ac_dD}
  5142. \${ac_uA}LWLIB_MENUBARS_MOTIF\${ac_uB}LWLIB_MENUBARS_MOTIF\${ac_uC}1\${ac_uD}
  5143. \${ac_eA}LWLIB_MENUBARS_MOTIF\${ac_eB}LWLIB_MENUBARS_MOTIF\${ac_eC}1\${ac_eD}
  5144. "
  5145. }
  5146.  
  5147. fi
  5148. if [ "${with_scrollbars}" = "lucid" ] ; then
  5149.    
  5150. {
  5151. test -n "$verbose" && \
  5152. echo "    defining LWLIB_SCROLLBARS_LUCID"
  5153. echo "#define" LWLIB_SCROLLBARS_LUCID "1" >> confdefs.h
  5154. DEFS="$DEFS -DLWLIB_SCROLLBARS_LUCID=1"
  5155. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_LUCID\${ac_dB}LWLIB_SCROLLBARS_LUCID\${ac_dC}1\${ac_dD}
  5156. \${ac_uA}LWLIB_SCROLLBARS_LUCID\${ac_uB}LWLIB_SCROLLBARS_LUCID\${ac_uC}1\${ac_uD}
  5157. \${ac_eA}LWLIB_SCROLLBARS_LUCID\${ac_eB}LWLIB_SCROLLBARS_LUCID\${ac_eC}1\${ac_eD}
  5158. "
  5159. }
  5160.  
  5161. fi
  5162. if [ "${with_scrollbars}" = "motif" ] ; then
  5163.    
  5164. {
  5165. test -n "$verbose" && \
  5166. echo "    defining LWLIB_SCROLLBARS_MOTIF"
  5167. echo "#define" LWLIB_SCROLLBARS_MOTIF "1" >> confdefs.h
  5168. DEFS="$DEFS -DLWLIB_SCROLLBARS_MOTIF=1"
  5169. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_MOTIF\${ac_dB}LWLIB_SCROLLBARS_MOTIF\${ac_dC}1\${ac_dD}
  5170. \${ac_uA}LWLIB_SCROLLBARS_MOTIF\${ac_uB}LWLIB_SCROLLBARS_MOTIF\${ac_uC}1\${ac_uD}
  5171. \${ac_eA}LWLIB_SCROLLBARS_MOTIF\${ac_eB}LWLIB_SCROLLBARS_MOTIF\${ac_eC}1\${ac_eD}
  5172. "
  5173. }
  5174.  
  5175. fi
  5176. if [ "${with_scrollbars}" = "athena" ] ; then
  5177.    
  5178. {
  5179. test -n "$verbose" && \
  5180. echo "    defining LWLIB_SCROLLBARS_ATHENA"
  5181. echo "#define" LWLIB_SCROLLBARS_ATHENA "1" >> confdefs.h
  5182. DEFS="$DEFS -DLWLIB_SCROLLBARS_ATHENA=1"
  5183. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_SCROLLBARS_ATHENA\${ac_dB}LWLIB_SCROLLBARS_ATHENA\${ac_dC}1\${ac_dD}
  5184. \${ac_uA}LWLIB_SCROLLBARS_ATHENA\${ac_uB}LWLIB_SCROLLBARS_ATHENA\${ac_uC}1\${ac_uD}
  5185. \${ac_eA}LWLIB_SCROLLBARS_ATHENA\${ac_eB}LWLIB_SCROLLBARS_ATHENA\${ac_eC}1\${ac_eD}
  5186. "
  5187. }
  5188.  
  5189. fi
  5190. if [ "${with_dialogs}" = "motif" ] ; then
  5191.    
  5192. {
  5193. test -n "$verbose" && \
  5194. echo "    defining LWLIB_DIALOGS_MOTIF"
  5195. echo "#define" LWLIB_DIALOGS_MOTIF "1" >> confdefs.h
  5196. DEFS="$DEFS -DLWLIB_DIALOGS_MOTIF=1"
  5197. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_MOTIF\${ac_dB}LWLIB_DIALOGS_MOTIF\${ac_dC}1\${ac_dD}
  5198. \${ac_uA}LWLIB_DIALOGS_MOTIF\${ac_uB}LWLIB_DIALOGS_MOTIF\${ac_uC}1\${ac_uD}
  5199. \${ac_eA}LWLIB_DIALOGS_MOTIF\${ac_eB}LWLIB_DIALOGS_MOTIF\${ac_eC}1\${ac_eD}
  5200. "
  5201. }
  5202.  
  5203. fi
  5204. if [ "${with_dialogs}" = "athena" ] ; then
  5205.    
  5206. {
  5207. test -n "$verbose" && \
  5208. echo "    defining LWLIB_DIALOGS_ATHENA"
  5209. echo "#define" LWLIB_DIALOGS_ATHENA "1" >> confdefs.h
  5210. DEFS="$DEFS -DLWLIB_DIALOGS_ATHENA=1"
  5211. ac_sed_defs="${ac_sed_defs}\${ac_dA}LWLIB_DIALOGS_ATHENA\${ac_dB}LWLIB_DIALOGS_ATHENA\${ac_dC}1\${ac_dD}
  5212. \${ac_uA}LWLIB_DIALOGS_ATHENA\${ac_uB}LWLIB_DIALOGS_ATHENA\${ac_uC}1\${ac_uD}
  5213. \${ac_eA}LWLIB_DIALOGS_ATHENA\${ac_eB}LWLIB_DIALOGS_ATHENA\${ac_eC}1\${ac_eD}
  5214. "
  5215. }
  5216.  
  5217. fi
  5218. if [ "${with_tooltalk}" = "yes" ] ; then
  5219.    
  5220. {
  5221. test -n "$verbose" && \
  5222. echo "    defining TOOLTALK"
  5223. echo "#define" TOOLTALK "1" >> confdefs.h
  5224. DEFS="$DEFS -DTOOLTALK=1"
  5225. ac_sed_defs="${ac_sed_defs}\${ac_dA}TOOLTALK\${ac_dB}TOOLTALK\${ac_dC}1\${ac_dD}
  5226. \${ac_uA}TOOLTALK\${ac_uB}TOOLTALK\${ac_uC}1\${ac_uD}
  5227. \${ac_eA}TOOLTALK\${ac_eB}TOOLTALK\${ac_eC}1\${ac_eD}
  5228. "
  5229. }
  5230.  
  5231. fi
  5232. if [ "$with_i18n3" = "yes" ]; then
  5233.    
  5234. {
  5235. test -n "$verbose" && \
  5236. echo "    defining I18N3"
  5237. echo "#define" I18N3 "1" >> confdefs.h
  5238. DEFS="$DEFS -DI18N3=1"
  5239. ac_sed_defs="${ac_sed_defs}\${ac_dA}I18N3\${ac_dB}I18N3\${ac_dC}1\${ac_dD}
  5240. \${ac_uA}I18N3\${ac_uB}I18N3\${ac_uC}1\${ac_uD}
  5241. \${ac_eA}I18N3\${ac_eB}I18N3\${ac_eC}1\${ac_eD}
  5242. "
  5243. }
  5244.  
  5245. fi
  5246. if [ "$with_mule" = "yes" ]; then
  5247.    
  5248. {
  5249. test -n "$verbose" && \
  5250. echo "    defining MULE"
  5251. echo "#define" MULE "1" >> confdefs.h
  5252. DEFS="$DEFS -DMULE=1"
  5253. ac_sed_defs="${ac_sed_defs}\${ac_dA}MULE\${ac_dB}MULE\${ac_dC}1\${ac_dD}
  5254. \${ac_uA}MULE\${ac_uB}MULE\${ac_uC}1\${ac_uD}
  5255. \${ac_eA}MULE\${ac_eB}MULE\${ac_eC}1\${ac_eD}
  5256. "
  5257. }
  5258.  
  5259. fi
  5260. if [ "${with_sparcworks}" = "yes" ] ; then
  5261.    
  5262. {
  5263. test -n "$verbose" && \
  5264. echo "    defining SUNPRO"
  5265. echo "#define" SUNPRO "1" >> confdefs.h
  5266. DEFS="$DEFS -DSUNPRO=1"
  5267. ac_sed_defs="${ac_sed_defs}\${ac_dA}SUNPRO\${ac_dB}SUNPRO\${ac_dC}1\${ac_dD}
  5268. \${ac_uA}SUNPRO\${ac_uB}SUNPRO\${ac_uC}1\${ac_uD}
  5269. \${ac_eA}SUNPRO\${ac_eB}SUNPRO\${ac_eC}1\${ac_eD}
  5270. "
  5271. }
  5272.  
  5273. fi
  5274. if [ "${usage_tracking}" = "yes" ] ; then
  5275.    
  5276. {
  5277. test -n "$verbose" && \
  5278. echo "    defining USAGE_TRACKING"
  5279. echo "#define" USAGE_TRACKING "1" >> confdefs.h
  5280. DEFS="$DEFS -DUSAGE_TRACKING=1"
  5281. ac_sed_defs="${ac_sed_defs}\${ac_dA}USAGE_TRACKING\${ac_dB}USAGE_TRACKING\${ac_dC}1\${ac_dD}
  5282. \${ac_uA}USAGE_TRACKING\${ac_uB}USAGE_TRACKING\${ac_uC}1\${ac_uD}
  5283. \${ac_eA}USAGE_TRACKING\${ac_eB}USAGE_TRACKING\${ac_eC}1\${ac_eD}
  5284. "
  5285. }
  5286.  
  5287. fi
  5288. if [ "${with_energize}" = "yes" ] ; then
  5289.    
  5290. {
  5291. test -n "$verbose" && \
  5292. echo "    defining ENERGIZE"
  5293. echo "#define" ENERGIZE "1" >> confdefs.h
  5294. DEFS="$DEFS -DENERGIZE=1"
  5295. ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE\${ac_dB}ENERGIZE\${ac_dC}1\${ac_dD}
  5296. \${ac_uA}ENERGIZE\${ac_uB}ENERGIZE\${ac_uC}1\${ac_uD}
  5297. \${ac_eA}ENERGIZE\${ac_eB}ENERGIZE\${ac_eC}1\${ac_eD}
  5298. "
  5299. }
  5300.  
  5301.   if [ "${energize_version}" = "2.X" ] ; then
  5302.      
  5303. {
  5304. test -n "$verbose" && \
  5305. echo "    defining ENERGIZE_2"
  5306. echo "#define" ENERGIZE_2 "1" >> confdefs.h
  5307. DEFS="$DEFS -DENERGIZE_2=1"
  5308. ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_2\${ac_dB}ENERGIZE_2\${ac_dC}1\${ac_dD}
  5309. \${ac_uA}ENERGIZE_2\${ac_uB}ENERGIZE_2\${ac_uC}1\${ac_uD}
  5310. \${ac_eA}ENERGIZE_2\${ac_eB}ENERGIZE_2\${ac_eC}1\${ac_eD}
  5311. "
  5312. }
  5313.  
  5314.   elif [ "${energize_version}" = "3.X" ] ; then
  5315.      
  5316. {
  5317. test -n "$verbose" && \
  5318. echo "    defining ENERGIZE_3"
  5319. echo "#define" ENERGIZE_3 "1" >> confdefs.h
  5320. DEFS="$DEFS -DENERGIZE_3=1"
  5321. ac_sed_defs="${ac_sed_defs}\${ac_dA}ENERGIZE_3\${ac_dB}ENERGIZE_3\${ac_dC}1\${ac_dD}
  5322. \${ac_uA}ENERGIZE_3\${ac_uB}ENERGIZE_3\${ac_uC}1\${ac_uD}
  5323. \${ac_eA}ENERGIZE_3\${ac_eB}ENERGIZE_3\${ac_eC}1\${ac_eD}
  5324. "
  5325. }
  5326.  
  5327.   fi
  5328. fi
  5329. if [ "${need_dynodump}" = "yes" ] ; then
  5330.    
  5331. {
  5332. test -n "$verbose" && \
  5333. echo "    defining DYNODUMP"
  5334. echo "#define" DYNODUMP "1" >> confdefs.h
  5335. DEFS="$DEFS -DDYNODUMP=1"
  5336. ac_sed_defs="${ac_sed_defs}\${ac_dA}DYNODUMP\${ac_dB}DYNODUMP\${ac_dC}1\${ac_dD}
  5337. \${ac_uA}DYNODUMP\${ac_uB}DYNODUMP\${ac_uC}1\${ac_uD}
  5338. \${ac_eA}DYNODUMP\${ac_eB}DYNODUMP\${ac_eC}1\${ac_eD}
  5339. "
  5340. }
  5341.  
  5342. fi
  5343. if [ "${with_gcc}" = "yes" ] ; then
  5344.    
  5345. {
  5346. test -n "$verbose" && \
  5347. echo "    defining USE_GCC"
  5348. echo "#define" USE_GCC "1" >> confdefs.h
  5349. DEFS="$DEFS -DUSE_GCC=1"
  5350. ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_GCC\${ac_dB}USE_GCC\${ac_dC}1\${ac_dD}
  5351. \${ac_uA}USE_GCC\${ac_uB}USE_GCC\${ac_uC}1\${ac_uD}
  5352. \${ac_eA}USE_GCC\${ac_eB}USE_GCC\${ac_eC}1\${ac_eD}
  5353. "
  5354. }
  5355.  
  5356. fi
  5357. if [ "${with_lcc}" = "yes" ] ; then
  5358.    
  5359. {
  5360. test -n "$verbose" && \
  5361. echo "    defining USE_LCC"
  5362. echo "#define" USE_LCC "1" >> confdefs.h
  5363. DEFS="$DEFS -DUSE_LCC=1"
  5364. ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_LCC\${ac_dB}USE_LCC\${ac_dC}1\${ac_dD}
  5365. \${ac_uA}USE_LCC\${ac_uB}USE_LCC\${ac_uC}1\${ac_uD}
  5366. \${ac_eA}USE_LCC\${ac_eB}USE_LCC\${ac_eC}1\${ac_eD}
  5367. "
  5368. }
  5369.  
  5370. fi
  5371. if [ "${with_socks}" = "yes" ]; then
  5372.    
  5373. {
  5374. test -n "$verbose" && \
  5375. echo "    defining HAVE_SOCKS"
  5376. echo "#define" HAVE_SOCKS "1" >> confdefs.h
  5377. DEFS="$DEFS -DHAVE_SOCKS=1"
  5378. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_SOCKS\${ac_dB}HAVE_SOCKS\${ac_dC}1\${ac_dD}
  5379. \${ac_uA}HAVE_SOCKS\${ac_uB}HAVE_SOCKS\${ac_uC}1\${ac_uD}
  5380. \${ac_eA}HAVE_SOCKS\${ac_eB}HAVE_SOCKS\${ac_eC}1\${ac_eD}
  5381. "
  5382. }
  5383.  
  5384. fi
  5385. if [ "${with_xpm}" = "yes" ]; then
  5386.    
  5387. {
  5388. test -n "$verbose" && \
  5389. echo "    defining HAVE_XPM"
  5390. echo "#define" HAVE_XPM "1" >> confdefs.h
  5391. DEFS="$DEFS -DHAVE_XPM=1"
  5392. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XPM\${ac_dB}HAVE_XPM\${ac_dC}1\${ac_dD}
  5393. \${ac_uA}HAVE_XPM\${ac_uB}HAVE_XPM\${ac_uC}1\${ac_uD}
  5394. \${ac_eA}HAVE_XPM\${ac_eB}HAVE_XPM\${ac_eC}1\${ac_eD}
  5395. "
  5396. }
  5397.  
  5398. fi
  5399. if [ "${with_xface}" = "yes" ]; then
  5400.    
  5401. {
  5402. test -n "$verbose" && \
  5403. echo "    defining HAVE_XFACE"
  5404. echo "#define" HAVE_XFACE "1" >> confdefs.h
  5405. DEFS="$DEFS -DHAVE_XFACE=1"
  5406. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XFACE\${ac_dB}HAVE_XFACE\${ac_dC}1\${ac_dD}
  5407. \${ac_uA}HAVE_XFACE\${ac_uB}HAVE_XFACE\${ac_uC}1\${ac_uD}
  5408. \${ac_eA}HAVE_XFACE\${ac_eB}HAVE_XFACE\${ac_eC}1\${ac_eD}
  5409. "
  5410. }
  5411.  
  5412. fi
  5413. if [ "${with_gif}" = "yes" ]; then
  5414.    
  5415. {
  5416. test -n "$verbose" && \
  5417. echo "    defining HAVE_GIF"
  5418. echo "#define" HAVE_GIF "1" >> confdefs.h
  5419. DEFS="$DEFS -DHAVE_GIF=1"
  5420. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_GIF\${ac_dB}HAVE_GIF\${ac_dC}1\${ac_dD}
  5421. \${ac_uA}HAVE_GIF\${ac_uB}HAVE_GIF\${ac_uC}1\${ac_uD}
  5422. \${ac_eA}HAVE_GIF\${ac_eB}HAVE_GIF\${ac_eC}1\${ac_eD}
  5423. "
  5424. }
  5425.  
  5426. fi
  5427. if [ "${with_jpg}" = "yes" ]; then
  5428.    
  5429. {
  5430. test -n "$verbose" && \
  5431. echo "    defining HAVE_JPG"
  5432. echo "#define" HAVE_JPG "1" >> confdefs.h
  5433. DEFS="$DEFS -DHAVE_JPG=1"
  5434. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_JPG\${ac_dB}HAVE_JPG\${ac_dC}1\${ac_dD}
  5435. \${ac_uA}HAVE_JPG\${ac_uB}HAVE_JPG\${ac_uC}1\${ac_uD}
  5436. \${ac_eA}HAVE_JPG\${ac_eB}HAVE_JPG\${ac_eC}1\${ac_eD}
  5437. "
  5438. }
  5439.  
  5440. fi
  5441. if [ "${with_png}" = "yes" ]; then
  5442.    
  5443. {
  5444. test -n "$verbose" && \
  5445. echo "    defining HAVE_PNG"
  5446. echo "#define" HAVE_PNG "1" >> confdefs.h
  5447. DEFS="$DEFS -DHAVE_PNG=1"
  5448. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PNG\${ac_dB}HAVE_PNG\${ac_dC}1\${ac_dD}
  5449. \${ac_uA}HAVE_PNG\${ac_uB}HAVE_PNG\${ac_uC}1\${ac_uD}
  5450. \${ac_eA}HAVE_PNG\${ac_eB}HAVE_PNG\${ac_eC}1\${ac_eD}
  5451. "
  5452. }
  5453.  
  5454. fi
  5455. if [ "${with_xauth}" = "yes" ]; then
  5456.    
  5457. {
  5458. test -n "$verbose" && \
  5459. echo "    defining HAVE_XAUTH"
  5460. echo "#define" HAVE_XAUTH "1" >> confdefs.h
  5461. DEFS="$DEFS -DHAVE_XAUTH=1"
  5462. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XAUTH\${ac_dB}HAVE_XAUTH\${ac_dC}1\${ac_dD}
  5463. \${ac_uA}HAVE_XAUTH\${ac_uB}HAVE_XAUTH\${ac_uC}1\${ac_uD}
  5464. \${ac_eA}HAVE_XAUTH\${ac_eB}HAVE_XAUTH\${ac_eC}1\${ac_eD}
  5465. "
  5466. }
  5467.  
  5468. fi
  5469. if [ "${with_epoch}" = "yes" ]; then
  5470.    
  5471. {
  5472. test -n "$verbose" && \
  5473. echo "    defining EPOCH"
  5474. echo "#define" EPOCH "1" >> confdefs.h
  5475. DEFS="$DEFS -DEPOCH=1"
  5476. ac_sed_defs="${ac_sed_defs}\${ac_dA}EPOCH\${ac_dB}EPOCH\${ac_dC}1\${ac_dD}
  5477. \${ac_uA}EPOCH\${ac_uB}EPOCH\${ac_uC}1\${ac_uD}
  5478. \${ac_eA}EPOCH\${ac_eB}EPOCH\${ac_eC}1\${ac_eD}
  5479. "
  5480. }
  5481.  
  5482. fi
  5483. if [ "${dont_have_xmu}" != "yes" ]; then
  5484.    
  5485. {
  5486. test -n "$verbose" && \
  5487. echo "    defining HAVE_XMU"
  5488. echo "#define" HAVE_XMU "1" >> confdefs.h
  5489. DEFS="$DEFS -DHAVE_XMU=1"
  5490. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_XMU\${ac_dB}HAVE_XMU\${ac_dC}1\${ac_dD}
  5491. \${ac_uA}HAVE_XMU\${ac_uB}HAVE_XMU\${ac_uC}1\${ac_uD}
  5492. \${ac_eA}HAVE_XMU\${ac_eB}HAVE_XMU\${ac_eC}1\${ac_eD}
  5493. "
  5494. }
  5495.  
  5496. fi
  5497. if [ "${with_sound}" = "native" -o  "${with_sound}" = "both" ]; then
  5498.    
  5499. {
  5500. test -n "$verbose" && \
  5501. echo "    defining HAVE_NATIVE_SOUND"
  5502. echo "#define" HAVE_NATIVE_SOUND "1" >> confdefs.h
  5503. DEFS="$DEFS -DHAVE_NATIVE_SOUND=1"
  5504. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NATIVE_SOUND\${ac_dB}HAVE_NATIVE_SOUND\${ac_dC}1\${ac_dD}
  5505. \${ac_uA}HAVE_NATIVE_SOUND\${ac_uB}HAVE_NATIVE_SOUND\${ac_uC}1\${ac_uD}
  5506. \${ac_eA}HAVE_NATIVE_SOUND\${ac_eB}HAVE_NATIVE_SOUND\${ac_eC}1\${ac_eD}
  5507. "
  5508. }
  5509.  
  5510. fi
  5511. if [ "${with_sound}" = "nas" -o  "${with_sound}" = "both" ]; then
  5512.    
  5513. {
  5514. test -n "$verbose" && \
  5515. echo "    defining HAVE_NAS_SOUND"
  5516. echo "#define" HAVE_NAS_SOUND "1" >> confdefs.h
  5517. DEFS="$DEFS -DHAVE_NAS_SOUND=1"
  5518. ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_NAS_SOUND\${ac_dB}HAVE_NAS_SOUND\${ac_dC}1\${ac_dD}
  5519. \${ac_uA}HAVE_NAS_SOUND\${ac_uB}HAVE_NAS_SOUND\${ac_uC}1\${ac_uD}
  5520. \${ac_eA}HAVE_NAS_SOUND\${ac_eB}HAVE_NAS_SOUND\${ac_eC}1\${ac_eD}
  5521. "
  5522. }
  5523.  
  5524. fi
  5525. if [ "${old_nas}" = "true" ] ; then
  5526.    
  5527. {
  5528. test -n "$verbose" && \
  5529. echo "    defining NAS_NO_ERROR_JUMP"
  5530. echo "#define" NAS_NO_ERROR_JUMP "1" >> confdefs.h
  5531. DEFS="$DEFS -DNAS_NO_ERROR_JUMP=1"
  5532. ac_sed_defs="${ac_sed_defs}\${ac_dA}NAS_NO_ERROR_JUMP\${ac_dB}NAS_NO_ERROR_JUMP\${ac_dC}1\${ac_dD}
  5533. \${ac_uA}NAS_NO_ERROR_JUMP\${ac_uB}NAS_NO_ERROR_JUMP\${ac_uC}1\${ac_uD}
  5534. \${ac_eA}NAS_NO_ERROR_JUMP\${ac_eB}NAS_NO_ERROR_JUMP\${ac_eC}1\${ac_eD}
  5535. "
  5536. }
  5537.  
  5538. fi
  5539. if [ "${external_widget}" = "yes" ]; then
  5540.    
  5541. {
  5542. test -n "$verbose" && \
  5543. echo "    defining EXTERNAL_WIDGET"
  5544. echo "#define" EXTERNAL_WIDGET "1" >> confdefs.h
  5545. DEFS="$DEFS -DEXTERNAL_WIDGET=1"
  5546. ac_sed_defs="${ac_sed_defs}\${ac_dA}EXTERNAL_WIDGET\${ac_dB}EXTERNAL_WIDGET\${ac_dC}1\${ac_dD}
  5547. \${ac_uA}EXTERNAL_WIDGET\${ac_uB}EXTERNAL_WIDGET\${ac_uC}1\${ac_uD}
  5548. \${ac_eA}EXTERNAL_WIDGET\${ac_eB}EXTERNAL_WIDGET\${ac_eC}1\${ac_eD}
  5549. "
  5550. }
  5551.  
  5552. fi
  5553. if [ "${const_is_losing}" = "yes" ]; then
  5554.    
  5555. {
  5556. test -n "$verbose" && \
  5557. echo "    defining CONST_IS_LOSING"
  5558. echo "#define" CONST_IS_LOSING "1" >> confdefs.h
  5559. DEFS="$DEFS -DCONST_IS_LOSING=1"
  5560. ac_sed_defs="${ac_sed_defs}\${ac_dA}CONST_IS_LOSING\${ac_dB}CONST_IS_LOSING\${ac_dC}1\${ac_dD}
  5561. \${ac_uA}CONST_IS_LOSING\${ac_uB}CONST_IS_LOSING\${ac_uC}1\${ac_uD}
  5562. \${ac_eA}CONST_IS_LOSING\${ac_eB}CONST_IS_LOSING\${ac_eC}1\${ac_eD}
  5563. "
  5564. }
  5565.  
  5566. fi
  5567. if [ "${use_assertions}" = "yes" ]; then
  5568.    
  5569. {
  5570. test -n "$verbose" && \
  5571. echo "    defining USE_ASSERTIONS"
  5572. echo "#define" USE_ASSERTIONS "1" >> confdefs.h
  5573. DEFS="$DEFS -DUSE_ASSERTIONS=1"
  5574. ac_sed_defs="${ac_sed_defs}\${ac_dA}USE_ASSERTIONS\${ac_dB}USE_ASSERTIONS\${ac_dC}1\${ac_dD}
  5575. \${ac_uA}USE_ASSERTIONS\${ac_uB}USE_ASSERTIONS\${ac_uC}1\${ac_uD}
  5576. \${ac_eA}USE_ASSERTIONS\${ac_eB}USE_ASSERTIONS\${ac_eC}1\${ac_eD}
  5577. "
  5578. }
  5579.  
  5580. fi
  5581. if [ "${error_check_extents}" = "yes" ]; then
  5582.    
  5583. {
  5584. test -n "$verbose" && \
  5585. echo "    defining ERROR_CHECK_EXTENTS"
  5586. echo "#define" ERROR_CHECK_EXTENTS "1" >> confdefs.h
  5587. DEFS="$DEFS -DERROR_CHECK_EXTENTS=1"
  5588. ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_EXTENTS\${ac_dB}ERROR_CHECK_EXTENTS\${ac_dC}1\${ac_dD}
  5589. \${ac_uA}ERROR_CHECK_EXTENTS\${ac_uB}ERROR_CHECK_EXTENTS\${ac_uC}1\${ac_uD}
  5590. \${ac_eA}ERROR_CHECK_EXTENTS\${ac_eB}ERROR_CHECK_EXTENTS\${ac_eC}1\${ac_eD}
  5591. "
  5592. }
  5593.  
  5594. fi
  5595. if [ "${error_check_typecheck}" = "yes" ]; then
  5596.    
  5597. {
  5598. test -n "$verbose" && \
  5599. echo "    defining ERROR_CHECK_TYPECHECK"
  5600. echo "#define" ERROR_CHECK_TYPECHECK "1" >> confdefs.h
  5601. DEFS="$DEFS -DERROR_CHECK_TYPECHECK=1"
  5602. ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_TYPECHECK\${ac_dB}ERROR_CHECK_TYPECHECK\${ac_dC}1\${ac_dD}
  5603. \${ac_uA}ERROR_CHECK_TYPECHECK\${ac_uB}ERROR_CHECK_TYPECHECK\${ac_uC}1\${ac_uD}
  5604. \${ac_eA}ERROR_CHECK_TYPECHECK\${ac_eB}ERROR_CHECK_TYPECHECK\${ac_eC}1\${ac_eD}
  5605. "
  5606. }
  5607.  
  5608. fi
  5609. if [ "${error_check_bufpos}" = "yes" ]; then
  5610.    
  5611. {
  5612. test -n "$verbose" && \
  5613. echo "    defining ERROR_CHECK_BUFPOS"
  5614. echo "#define" ERROR_CHECK_BUFPOS "1" >> confdefs.h
  5615. DEFS="$DEFS -DERROR_CHECK_BUFPOS=1"
  5616. ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_BUFPOS\${ac_dB}ERROR_CHECK_BUFPOS\${ac_dC}1\${ac_dD}
  5617. \${ac_uA}ERROR_CHECK_BUFPOS\${ac_uB}ERROR_CHECK_BUFPOS\${ac_uC}1\${ac_uD}
  5618. \${ac_eA}ERROR_CHECK_BUFPOS\${ac_eB}ERROR_CHECK_BUFPOS\${ac_eC}1\${ac_eD}
  5619. "
  5620. }
  5621.  
  5622. fi
  5623. if [ "${error_check_gc}" = "yes" ]; then
  5624.    
  5625. {
  5626. test -n "$verbose" && \
  5627. echo "    defining ERROR_CHECK_GC"
  5628. echo "#define" ERROR_CHECK_GC "1" >> confdefs.h
  5629. DEFS="$DEFS -DERROR_CHECK_GC=1"
  5630. ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_GC\${ac_dB}ERROR_CHECK_GC\${ac_dC}1\${ac_dD}
  5631. \${ac_uA}ERROR_CHECK_GC\${ac_uB}ERROR_CHECK_GC\${ac_uC}1\${ac_uD}
  5632. \${ac_eA}ERROR_CHECK_GC\${ac_eB}ERROR_CHECK_GC\${ac_eC}1\${ac_eD}
  5633. "
  5634. }
  5635.  
  5636. fi
  5637. if [ "${error_check_malloc}" = "yes" ]; then
  5638.    
  5639. {
  5640. test -n "$verbose" && \
  5641. echo "    defining ERROR_CHECK_MALLOC"
  5642. echo "#define" ERROR_CHECK_MALLOC "1" >> confdefs.h
  5643. DEFS="$DEFS -DERROR_CHECK_MALLOC=1"
  5644. ac_sed_defs="${ac_sed_defs}\${ac_dA}ERROR_CHECK_MALLOC\${ac_dB}ERROR_CHECK_MALLOC\${ac_dC}1\${ac_dD}
  5645. \${ac_uA}ERROR_CHECK_MALLOC\${ac_uB}ERROR_CHECK_MALLOC\${ac_uC}1\${ac_uD}
  5646. \${ac_eA}ERROR_CHECK_MALLOC\${ac_eB}ERROR_CHECK_MALLOC\${ac_eC}1\${ac_eD}
  5647. "
  5648. }
  5649.  
  5650. fi
  5651. if [ "${debug}" = "yes" ]; then
  5652.    
  5653. {
  5654. test -n "$verbose" && \
  5655. echo "    defining DEBUG_XEMACS"
  5656. echo "#define" DEBUG_XEMACS "1" >> confdefs.h
  5657. DEFS="$DEFS -DDEBUG_XEMACS=1"
  5658. ac_sed_defs="${ac_sed_defs}\${ac_dA}DEBUG_XEMACS\${ac_dB}DEBUG_XEMACS\${ac_dC}1\${ac_dD}
  5659. \${ac_uA}DEBUG_XEMACS\${ac_uB}DEBUG_XEMACS\${ac_uC}1\${ac_uD}
  5660. \${ac_eA}DEBUG_XEMACS\${ac_eB}DEBUG_XEMACS\${ac_eC}1\${ac_eD}
  5661. "
  5662. }
  5663.  
  5664. fi
  5665. if [ "${quantify}" = "yes" ]; then
  5666.    
  5667. {
  5668. test -n "$verbose" && \
  5669. echo "    defining QUANTIFY"
  5670. echo "#define" QUANTIFY "1" >> confdefs.h
  5671. DEFS="$DEFS -DQUANTIFY=1"
  5672. ac_sed_defs="${ac_sed_defs}\${ac_dA}QUANTIFY\${ac_dB}QUANTIFY\${ac_dC}1\${ac_dD}
  5673. \${ac_uA}QUANTIFY\${ac_uB}QUANTIFY\${ac_uC}1\${ac_uD}
  5674. \${ac_eA}QUANTIFY\${ac_eB}QUANTIFY\${ac_eC}1\${ac_eD}
  5675. "
  5676. }
  5677.  
  5678. fi
  5679.  
  5680. # ====================== Developer's configuration =======================
  5681.  
  5682. # The following assignments make sense if you're running XEmacs on a single
  5683. # machine, one version at a time, and you want changes to the lisp and etc
  5684. # directories in the source tree to show up immediately in your working
  5685. # environment.  It saves a great deal of disk space by not duplicating the
  5686. # lisp and etc directories.
  5687.  
  5688. if [ "$run_in_place" = "yes" ]; then
  5689.    prefix='${srcdir}'
  5690.    exec_prefix='${srcdir}'
  5691.    bindir='${exec_prefix}/bin/${configuration}'
  5692.    lispdir='${srcdir}/lisp'
  5693.    sitelispdir='${lispdir}/site-lisp'
  5694.    etcdir='${srcdir}/etc'
  5695.    lockdir='${srcdir}/lock'
  5696.    archlibdir='${srcdir}/lib-src/${configuration}'
  5697.    infodir='${srcdir}/info'
  5698. fi
  5699. #elif [ "$single_tree" = "1" ]; then
  5700. #   if [ "$exec_prefix_specified" = "" ]; then
  5701. #      exec_prefix='${prefix}'
  5702. #   fi
  5703. #   if [ "$bindir_specified" = "" ]; then
  5704. #      bindir='${exec_prefix}/bin/${configuration}'
  5705. #   fi
  5706. #   if [ "$datadir_specified" = "" ]; then
  5707. #      datadir='${prefix}/common'
  5708. #   fi
  5709. #   if [ "$statedir_specified" = "" ]; then
  5710. #      statedir='${prefix}/common'
  5711. #   fi
  5712. #   if [ "$libdir_specified" = "" ]; then
  5713. #      libdir='${bindir}'
  5714. #   fi
  5715. #   if [ "$lispdir_specified" = "" ]; then
  5716. #      lispdir='${prefix}/common/lisp'
  5717. #   fi
  5718. #   if [ "$locallisppath_specified" = "" ]; then
  5719. #      locallisppath='${prefix}/common/site-lisp'
  5720. #   fi
  5721. #   if [ "$lockdir_specified" = "" ]; then
  5722. #      lockdir='${prefix}/common/lock'
  5723. #   fi
  5724. #   if [ "$archlibdir_specified" = "" ]; then
  5725. #      archlibdir='${libdir}/etc'
  5726. #   fi
  5727. #   if [ "$etcdir_specified" = "" ]; then
  5728. #      etcdir='${prefix}/common/data'
  5729. #   fi
  5730. #   if [ "$docdir_specified" = "" ]; then
  5731. #      docdir='${prefix}/common/data'
  5732. #   fi
  5733. #fi
  5734.  
  5735. #### Report on what we decided to do.
  5736. echo "
  5737.  
  5738. Configured for \`${canonical}'.
  5739.  
  5740.   Where should the build process find the source code?    ${srcdir}
  5741.   What installation prefix should install use?          ${prefix}
  5742.   What operating system and machine description files should XEmacs use?
  5743.         \`${opsysfile}' and \`${machfile}'
  5744.   What compiler should XEmacs be built with?              ${CC} ${CFLAGS}
  5745.   Should XEmacs use the GNU version of malloc?            ${GNU_MALLOC}${GNU_MALLOC_reason}
  5746.   Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
  5747.   What window system should XEmacs use?                   ${window_system}${x_includes+
  5748.   Where do we find X Windows header files?                }${x_includes}${x_libraries+
  5749.   Where do we find X Windows libraries?                   }${x_libraries}"
  5750.  
  5751. if [ -n "$site_includes" ]; then
  5752.   echo "  Additional header files:                                ${site_includes}"
  5753. fi
  5754.  
  5755. if [ -n "$site_libraries" ] && [ -n "$site_runtime_libraries" ]; then
  5756.   echo "  Additional libraries:                                   ${site_libraries} ${site_runtime_libraries}"
  5757. elif [ -n "$site_libraries" ]; then
  5758.   echo "  Additional libraries:                                   ${site_libraries}"
  5759. elif [ -n "$site_runtime_libraries" ]; then
  5760.   echo "  Additional libraries:                                   ${site_runtime_libraries}"
  5761. fi
  5762.  
  5763. if [ "$with_socks" = "yes" ]; then
  5764.   echo "  Compiling in support for SOCKS."
  5765. fi
  5766. if [ "$with_xpm" = "yes" ]; then
  5767.   echo "  Compiling in support for XPM."
  5768. fi
  5769. if [ "$with_xface" = "yes" ]; then
  5770.   echo "  Compiling in support for X-Face headers."
  5771. fi
  5772. if [ "$with_gif" = "yes" ]; then
  5773.   echo "  Compiling in support for GIF image conversion."
  5774. fi
  5775. if [ "$with_jpeg" = "yes" ]; then
  5776.   echo "  Compiling in support for JPEG image conversion."
  5777. fi
  5778. if [ "$with_png" = "yes" ]; then
  5779.   echo "  Compiling in support for PNG image conversion."
  5780. fi
  5781. if [ "$with_epoch" = "yes" ]; then
  5782.   echo "  Compiling in extra Epoch compatibility."
  5783. fi
  5784. if [ "$with_sound" = "nas" ]; then
  5785.   echo "  Compiling in network sound support."
  5786. fi
  5787. if [ "$with_sound" = "native" ]; then
  5788.   echo "  Compiling in native sound support."
  5789. fi
  5790. if [ "$with_sound" = "both" ]; then
  5791.   echo "  Compiling in both network and native sound support."
  5792. fi
  5793. if [ "$old_nas" = true ]; then
  5794.   echo "        nas library lacks error trapping, will play synchronously"
  5795. fi
  5796. if [ "$with_tooltalk" = "yes" ]; then
  5797.   echo "  Compiling in support for ToolTalk."
  5798. fi
  5799. if [ "$with_i18n3" = "yes" ]; then
  5800.   echo "  Compiling in I18N support, level 3 (not fully supported)."
  5801. fi
  5802. if [ "$with_mule" = "yes" ]; then
  5803.   echo "  Compiling in Mule support.  This doesn't work yet."
  5804.   echo "    Let me say that again: Mule support DOES NOT work currently."
  5805.   echo "    It doesn't even compile yet."
  5806. fi
  5807. if [ "$with_sparcworks" = "yes" ]; then
  5808.   echo "  Compiling in support for SparcWorks."
  5809. fi
  5810. if [ "$with_energize" = "yes" ]; then
  5811.   echo "  Compiling in support for Lucid Energize."
  5812. fi
  5813. if [ "$with_menubars" = "lucid" ]; then
  5814.   echo "  Using the Lucid menubar."
  5815. fi
  5816. if [ "$with_menubars" = "motif" ]; then
  5817.   echo "  Using the Motif menubar."
  5818.   echo " *WARNING*  The Motif menubar is currently buggy.  We recommend"
  5819.   echo "            that you use the Lucid menubar instead.  Re-run"
  5820.   echo "            configure with --with-menubars='lucid'."
  5821. fi
  5822. if [ "$with_scrollbars" = "lucid" ]; then
  5823.   echo "  Using the Lucid scrollbar."
  5824. fi
  5825. if [ "$with_scrollbars" = "motif" ]; then
  5826.   echo "  Using the Motif scrollbar."
  5827. fi
  5828. if [ "$with_scrollbars" = "athena" ]; then
  5829.   echo "  Using the Athena scrollbar."
  5830. fi
  5831. if [ "$with_dialogs" = "motif" ]; then
  5832.   echo "  Using the Motif dialog boxes."
  5833. fi
  5834. if [ "$with_dialogs" = "athena" ]; then
  5835.   echo "  Using the Athena dialog boxes."
  5836. fi
  5837. if [ "$usage_tracking" = "yes" ]; then
  5838.   echo "  Compiling with usage tracking active."
  5839. fi
  5840. echo "
  5841. "
  5842.  
  5843. # This has to be called in order for this variable to get into config.status
  5844.   
  5845. # Remove any trailing slashes in these variables.
  5846. test -n "${prefix}" &&
  5847.   prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
  5848. test -n "${exec_prefix}" &&
  5849.   exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
  5850.  
  5851.  
  5852. # The preferred way to propogate these variables is regular @ substitutions.
  5853. if test -n "$prefix"; then
  5854.   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  5855. else
  5856.   prefix=/usr/local
  5857. fi
  5858. if test -n "$exec_prefix"; then
  5859.   ac_prsub="$ac_prsub
  5860. s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  5861. else
  5862.   exec_prefix='${prefix}' # Let make expand it.
  5863. fi
  5864.  
  5865. # Any assignment to VPATH causes Sun make to only execute
  5866. # the first set of double-colon rules, so remove it if not needed.
  5867. # If there is a colon in the path, we need to keep it.
  5868. if test "x$srcdir" = x.; then
  5869.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  5870. fi
  5871.  
  5872. # Quote sed substitution magic chars in DEFS.
  5873. cat >conftest.def <<EOF
  5874. $DEFS
  5875. EOF
  5876. ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  5877. DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  5878. rm -f conftest.def
  5879. # Substitute for predefined variables.
  5880.  
  5881. trap 'rm -f config.status; exit 1' 1 2 15
  5882. echo creating config.status
  5883. rm -f config.status
  5884. cat > config.status <<EOF
  5885. #!/bin/sh
  5886. # Generated automatically by configure.
  5887. # Run this file to recreate the current configuration.
  5888. # This directory was configured as follows,
  5889. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  5890. #
  5891. # $0 $configure_args
  5892.  
  5893. ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  5894. for ac_option
  5895. do
  5896.   case "\$ac_option" in
  5897.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5898.     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  5899.     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  5900.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  5901.     echo "config.status generated by autoconf version 1.11"
  5902.     exit 0 ;;
  5903.   -help | --help | --hel | --he | --h)
  5904.     echo "\$ac_cs_usage"; exit 0 ;;
  5905.   *) echo "\$ac_cs_usage"; exit 1 ;;
  5906.   esac
  5907. done
  5908.  
  5909. trap 'rm -fr $internal_makefile_list src/config.h conftest*; exit 1' 1 2 15
  5910. LN_S='$LN_S'
  5911. CC='$CC'
  5912. CPP='$CPP'
  5913. RANLIB='$RANLIB'
  5914. INSTALL='$INSTALL'
  5915. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  5916. INSTALL_DATA='$INSTALL_DATA'
  5917. YACC='$YACC'
  5918. SET_MAKE='$SET_MAKE'
  5919. ALLOCA='$ALLOCA'
  5920. version='$version'
  5921. configuration='$configuration'
  5922. srcdir='$srcdir'
  5923. prefix='$prefix'
  5924. exec_prefix='$exec_prefix'
  5925. bindir='$bindir'
  5926. datadir='$datadir'
  5927. statedir='$statedir'
  5928. libdir='$libdir'
  5929. mandir='$mandir'
  5930. infodir='$infodir'
  5931. lispdir='$lispdir'
  5932. sitelispdir='$sitelispdir'
  5933. etcdir='$etcdir'
  5934. lockdir='$lockdir'
  5935. archlibdir='$archlibdir'
  5936. docdir='$docdir'
  5937. c_switch_system='$c_switch_system'
  5938. c_switch_machine='$c_switch_machine'
  5939. libsrc_libs='$libsrc_libs'
  5940. LD_SWITCH_X_SITE='$LD_SWITCH_X_SITE'
  5941. LD_SWITCH_X_SITE_AUX='$LD_SWITCH_X_SITE_AUX'
  5942. C_SWITCH_X_SITE='$C_SWITCH_X_SITE'
  5943. LD_SWITCH_SITE='$LD_SWITCH_SITE'
  5944. C_SWITCH_SITE='$C_SWITCH_SITE'
  5945. CFLAGS='$CFLAGS'
  5946. native_sound_lib='$native_sound_lib'
  5947. machfile='$machfile'
  5948. opsysfile='$opsysfile'
  5949. dynodump_arch='$dynodump_arch'
  5950. internal_makefile_list='$internal_makefile_list'
  5951. LIBS='$LIBS'
  5952. top_srcdir='$top_srcdir'
  5953. ac_prsub='$ac_prsub'
  5954. ac_vpsub='$ac_vpsub'
  5955. extrasub='$extrasub'
  5956. EOF
  5957. cat >> config.status <<\EOF
  5958.  
  5959. ac_given_srcdir=$srcdir
  5960.  
  5961. CONFIG_FILES=${CONFIG_FILES-"$internal_makefile_list"}
  5962. for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  5963.   # Remove last slash and all that follows it.  Not all systems have dirname.
  5964.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  5965.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  5966.     # The file is in a subdirectory.
  5967.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  5968.     ac_dir_suffix="/$ac_dir"
  5969.   else
  5970.     ac_dir_suffix=
  5971.   fi
  5972.  
  5973.   # A "../" for each directory in $ac_dir_suffix.
  5974.   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  5975.   case "$ac_given_srcdir" in
  5976.   .)  srcdir=.
  5977.       if test -z "$ac_dir_suffix"; then top_srcdir=.
  5978.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  5979.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  5980.   *) # Relative path.
  5981.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  5982.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  5983.   esac
  5984.  
  5985.   echo creating "$ac_file"
  5986.   rm -f "$ac_file"
  5987.   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  5988.   case "$ac_file" in
  5989.     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  5990.     * )          echo "# $comment_str"     > "$ac_file" ;;
  5991.   esac
  5992.   sed -e "
  5993. $ac_prsub
  5994. $ac_vpsub
  5995. $extrasub
  5996. s%@LN_S@%$LN_S%g
  5997. s%@CC@%$CC%g
  5998. s%@CPP@%$CPP%g
  5999. s%@RANLIB@%$RANLIB%g
  6000. s%@INSTALL@%$INSTALL%g
  6001. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  6002. s%@INSTALL_DATA@%$INSTALL_DATA%g
  6003. s%@YACC@%$YACC%g
  6004. s%@SET_MAKE@%$SET_MAKE%g
  6005. s%@ALLOCA@%$ALLOCA%g
  6006. s%@version@%$version%g
  6007. s%@configuration@%$configuration%g
  6008. s%@srcdir@%$srcdir%g
  6009. s%@prefix@%$prefix%g
  6010. s%@exec_prefix@%$exec_prefix%g
  6011. s%@bindir@%$bindir%g
  6012. s%@datadir@%$datadir%g
  6013. s%@statedir@%$statedir%g
  6014. s%@libdir@%$libdir%g
  6015. s%@mandir@%$mandir%g
  6016. s%@infodir@%$infodir%g
  6017. s%@lispdir@%$lispdir%g
  6018. s%@sitelispdir@%$sitelispdir%g
  6019. s%@etcdir@%$etcdir%g
  6020. s%@lockdir@%$lockdir%g
  6021. s%@archlibdir@%$archlibdir%g
  6022. s%@docdir@%$docdir%g
  6023. s%@c_switch_system@%$c_switch_system%g
  6024. s%@c_switch_machine@%$c_switch_machine%g
  6025. s%@libsrc_libs@%$libsrc_libs%g
  6026. s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
  6027. s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
  6028. s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
  6029. s%@LD_SWITCH_SITE@%$LD_SWITCH_SITE%g
  6030. s%@C_SWITCH_SITE@%$C_SWITCH_SITE%g
  6031. s%@CFLAGS@%$CFLAGS%g
  6032. s%@native_sound_lib@%$native_sound_lib%g
  6033. s%@machfile@%$machfile%g
  6034. s%@opsysfile@%$opsysfile%g
  6035. s%@dynodump_arch@%$dynodump_arch%g
  6036. s%@internal_makefile_list@%$internal_makefile_list%g
  6037. s%@LIBS@%$LIBS%g
  6038. s%@top_srcdir@%$top_srcdir%g
  6039. s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  6040. fi; done
  6041.  
  6042. # These sed commands are put into ac_sed_defs when defining a macro.
  6043. # They are broken into pieces to make the sed script easier to manage.
  6044. # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  6045. # is the cpp macro being defined and VALUE is the value it is being given.
  6046. # Each defining turns into a single global substitution command.
  6047. # Hopefully no one uses "!" as a variable value.
  6048. # Other candidates for the sed separators, like , and @, do get used.
  6049. #
  6050. # ac_d sets the value in "#define NAME VALUE" lines.
  6051. ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  6052. ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  6053. ac_dC='\3'
  6054. ac_dD='!g'
  6055. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  6056. ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6057. ac_uB='\([     ]\)!\1#\2define\3'
  6058. ac_uC=' '
  6059. ac_uD='\4!g'
  6060. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  6061. ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  6062. ac_eB='$!\1#\2define\3'
  6063. ac_eC=' '
  6064. ac_eD='!g'
  6065. rm -f conftest.sed
  6066. EOF
  6067. # Turn off quoting long enough to insert the sed commands.
  6068. rm -f conftest.sh
  6069. cat > conftest.sh <<EOF
  6070. $ac_sed_defs
  6071. EOF
  6072.  
  6073. # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  6074. # on the size of here documents.
  6075.  
  6076. # Maximum number of lines to put in a single here document.
  6077. ac_max_sh_lines=9
  6078.  
  6079. while :
  6080. do
  6081.   # wc gives bogus results for an empty file on some AIX systems.
  6082.   ac_lines=`grep -c . conftest.sh`
  6083.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  6084.   rm -f conftest.s1 conftest.s2
  6085.   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  6086.   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  6087.   # Write a limited-size here document to append to conftest.sed.
  6088.   echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  6089.   cat conftest.s1 >> config.status
  6090.   echo 'CONFEOF' >> config.status
  6091.   rm -f conftest.s1 conftest.sh
  6092.   mv conftest.s2 conftest.sh
  6093. done
  6094. rm -f conftest.sh
  6095.  
  6096. # Now back to your regularly scheduled config.status.
  6097. cat >> config.status <<\EOF
  6098. # This sed command replaces #undef's with comments.  This is necessary, for
  6099. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6100. # on some systems where configure will not decide to define it in
  6101. # src/config.h.
  6102. cat >> conftest.sed <<\CONFEOF
  6103. s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  6104. CONFEOF
  6105. rm -f conftest.h
  6106. # Break up the sed commands because old seds have small limits.
  6107. ac_max_sed_lines=20
  6108.  
  6109. CONFIG_HEADERS=${CONFIG_HEADERS-"src/config.h"}
  6110. for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  6111.   echo creating $ac_file
  6112.  
  6113.   cp $ac_given_srcdir/$ac_file.in conftest.h1
  6114.   cp conftest.sed conftest.stm
  6115.   while :
  6116.   do
  6117.     ac_lines=`grep -c . conftest.stm`
  6118.     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  6119.     rm -f conftest.s1 conftest.s2 conftest.h2
  6120.     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  6121.     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  6122.     sed -f conftest.s1 < conftest.h1 > conftest.h2
  6123.     rm -f conftest.s1 conftest.h1 conftest.stm
  6124.     mv conftest.h2 conftest.h1
  6125.     mv conftest.s2 conftest.stm
  6126.   done
  6127.   rm -f conftest.stm conftest.h
  6128.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  6129.   cat conftest.h1 >> conftest.h
  6130.   rm -f conftest.h1
  6131.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  6132.     # The file exists and we would not be changing it.
  6133.     echo "$ac_file is unchanged"
  6134.     rm -f conftest.h
  6135.   else
  6136.     rm -f $ac_file
  6137.     mv conftest.h $ac_file
  6138.   fi
  6139. fi; done
  6140. rm -f conftest.sed
  6141.  
  6142.  
  6143.  
  6144. exit 0
  6145. EOF
  6146. chmod +x config.status
  6147. # Some shells look in PATH for config.status without the "./".
  6148. test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  6149.  
  6150. # Build src/Makefile from ${srcdir}/src/Makefile.in, lwlib/Makefile
  6151. # from ${srcdir}/lwlib/Makefile.in, lib-src/Makefile from
  6152. # ${srcdir}/lib-src/Makefile.in and dynodmp/Makefile from
  6153. # ${srcdir}/dynodump/Makefile.in.  This must be done after src/config.h
  6154. # is built, since we rely on that file.  Only do the build if
  6155. # "config.status" is present, since it's non-presence indicates
  6156. # an error occured.
  6157. status=$?
  6158. if [ ! -f ./config.status ]; then
  6159.    exit $status
  6160. fi
  6161. topsrcdir=${srcdir}
  6162.   # We discard all lines in Makefile.in that start with `# Generated' or /**/#
  6163.   # because some cpps get confused by them.
  6164.   # Really we should preserve them somehow into Makefile,
  6165.   # but that is beyond my level of shell programming.
  6166. makefile_command='echo "creating src/Makefile";
  6167.   topsrcdir='"${topsrcdir}"';
  6168. ( cd ./src;
  6169.   rm -f junk.c;
  6170.   sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
  6171.   eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
  6172.   < junk.cpp                            '\
  6173. '    sed -e '\''s/^#.*//'\''                    '\
  6174. '    -e '\''s/^[ \f\t][ \f\t]*$//'\''            '\
  6175. '    -e '\''s/^ /    /'\''                     '\
  6176. '    | sed -n -e '\''/^..*$/p'\''                '\
  6177. '    > Makefile.new;
  6178.     chmod 444 Makefile.new;
  6179.     mv -f Makefile.new Makefile;
  6180.     rm -f junk.c junk.cpp;
  6181. )'
  6182. eval `echo $makefile_command`
  6183. lwlib_makefile_command='echo "creating lwlib/Makefile";
  6184.   topsrcdir='"${topsrcdir}"';
  6185. ( cd ./lwlib;
  6186.   rm -f junk.c;
  6187.   sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
  6188.   eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
  6189.   < junk.cpp                            '\
  6190. '    sed -e '\''s/^#.*//'\''                    '\
  6191. '    -e '\''s/^[ \f\t][ \f\t]*$//'\''            '\
  6192. '    -e '\''s/^ /    /'\''                     '\
  6193. '    | sed -n -e '\''/^..*$/p'\''                '\
  6194. '    > Makefile.new;
  6195.     chmod 444 Makefile.new;
  6196.     mv -f Makefile.new Makefile;
  6197.     rm -f junk.c junk.cpp;
  6198. )'
  6199. eval `echo $lwlib_makefile_command`
  6200. lib_src_makefile_command='echo "creating lib-src/Makefile";
  6201.   topsrcdir='"${topsrcdir}"';
  6202. ( cd ./lib-src;
  6203.   rm -f junk.c;
  6204.   sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
  6205.   eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
  6206.   < junk.cpp                            '\
  6207. '    sed -e '\''s/^#.*//'\''                    '\
  6208. '    -e '\''s/^[ \f\t][ \f\t]*$//'\''            '\
  6209. '    -e '\''s/^ /    /'\''                     '\
  6210. '    | sed -n -e '\''/^..*$/p'\''                '\
  6211. '    > Makefile.new;
  6212.     chmod 444 Makefile.new;
  6213.     mv -f Makefile.new Makefile;
  6214.     rm -f junk.c junk.cpp;
  6215. )'
  6216. eval `echo $lib_src_makefile_command`
  6217. dynodump_makefile_command='echo "creating dynodump/Makefile";
  6218.   topsrcdir='"${topsrcdir}"';
  6219. ( cd ./dynodump;
  6220.   rm -f junk.c;
  6221.   sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
  6222.   eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
  6223.   < junk.cpp                            '\
  6224. '    sed -e '\''s/^#.*//'\''                    '\
  6225. '    -e '\''s/^[ \f\t][ \f\t]*$//'\''            '\
  6226. '    -e '\''s/^ /    /'\''                     '\
  6227. '    | sed -n -e '\''/^..*$/p'\''                '\
  6228. '    > Makefile.new;
  6229.     chmod 444 Makefile.new;
  6230.     mv -f Makefile.new Makefile;
  6231.     rm -f junk.c junk.cpp;
  6232. )'
  6233. eval `echo $dynodump_makefile_command`
  6234. if [ "${with_energize}" = "yes" ]; then
  6235. energize_makefile_command='echo "creating lwlib/energize/Makefile";
  6236.   topsrcdir='"${topsrcdir}"';
  6237. ( cd ./lwlib/energize;
  6238.   rm -f junk.c;
  6239.   sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
  6240.   eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
  6241.   < junk.cpp                            '\
  6242. '    sed -e '\''s/^#.*//'\''                    '\
  6243. '    -e '\''s/^[ \f\t][ \f\t]*$//'\''            '\
  6244. '    -e '\''s/^ /    /'\''                     '\
  6245. '    | sed -n -e '\''/^..*$/p'\''                '\
  6246. '    > Makefile.new;
  6247.     chmod 444 Makefile.new;
  6248.     mv -f Makefile.new Makefile;
  6249.     rm -f junk.c junk.cpp;
  6250. )'
  6251. eval `echo $energize_makefile_command`
  6252. fi
  6253. # AC-OUTPUT has created `config.status' already.  We need to add the
  6254. # above commands to re-create `src/Makefile', `lwlib/Makefile',
  6255. # `lib-src/Makefile', `dynodump/Makefile', and possibly
  6256. # `lwlib/energize/Makefile', and we need to insert them before the final
  6257. # "exit 0" which appears at the end of `config.status'.
  6258. <config.status sed -e 's/^exit 0$//' >config.new
  6259. echo $makefile_command >>config.new
  6260. echo $lwlib_makefile_command >>config.new
  6261. echo $lib_src_makefile_command >>config.new
  6262. echo $dynodump_makefile_command >>config.new
  6263. if [ "${with_energize}" = "yes" ]; then
  6264.   echo $energize_makefile_command >>config.new
  6265. fi
  6266. echo exit 0 >>config.new
  6267. mv -f config.new config.status
  6268. chmod +x config.status
  6269. # Don't let the fact that we just rewrote config.status make Makefile think
  6270. # that it is now newer.  We have just rewritten all of the Makefiles as well.
  6271. MFS="Makefile src/Makefile src/Makefile.in lib-src/Makefile dynodump/Makefile lib-src/Makefile.in lwlib/Makefile lwlib/Makefile.in"
  6272. for file in $MFS; do
  6273.    chmod a+w $file; touch $file; chmod 444 $file
  6274. done
  6275. exit 0
  6276.  
  6277. # I've removed "mode: ksh" from the following.  ksh mode sucks for
  6278. # editing this file. (It seems that ksh mode sucks in general.
  6279. # I wonder if the new 19.29 shell-script mode is better.)
  6280.  
  6281. # Local Variables:
  6282. # compile-command: "autoconf"
  6283. # End:
  6284.  
  6285.